Do not send reasoning traces and tool calls made during reasoning when switching from reasoning model to non reasoning model #2002

Closed
opened 2026-02-16 17:33:41 -05:00 by yindo · 1 comment
Owner

Originally created by @remorses on GitHub (Oct 8, 2025).

Originally assigned to: @thdxr on GitHub.

Reasoning traces and tool calls seem to confuse non reasoning models a lot. For example if you switch from GPT5 to Sonnet 4.5 the model becomes unusable because it gets lost in all the reasoning context given by the previous model

Probably we should strip the reasoning parts after the message completes even if no model switch is made imo

Instead only the actual final message should be kept

Originally created by @remorses on GitHub (Oct 8, 2025). Originally assigned to: @thdxr on GitHub. Reasoning traces and tool calls seem to confuse non reasoning models a lot. For example if you switch from GPT5 to Sonnet 4.5 the model becomes unusable because it gets lost in all the reasoning context given by the previous model Probably we should strip the reasoning parts after the message completes even if no model switch is made imo Instead only the actual final message should be kept
yindo closed this issue 2026-02-16 17:33:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 8, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3033: Add a way to delete message parts and messages in the sdk - addresses the same concern about tool calls and reasoning parts confusing models when switching contexts. The author mentions wanting to remove tool parts from plan messages when switching from GPT5 to Sonnet.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 8, 2025): This issue might be a duplicate of existing issues. Please check: - #3033: Add a way to delete message parts and messages in the sdk - addresses the same concern about tool calls and reasoning parts confusing models when switching contexts. The author mentions wanting to remove tool parts from plan messages when switching from GPT5 to Sonnet. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2002