Build/Plan mode toggle (TAB) resets model selection #982

Closed
opened 2026-02-16 17:28:59 -05:00 by yindo · 2 comments
Owner

Originally created by @dmarjenburgh on GitHub (Jul 30, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Opencode starts in the default model (configured in ~/.config/opencode/opencode.json).
If you change the model with /models or ctrl-x+m and hit TAB to toggle the mode, it will reset the selected model to the default one.

System:
Opencode V0.3.84
Ubuntu Linux

Originally created by @dmarjenburgh on GitHub (Jul 30, 2025). Originally assigned to: @adamdotdevin on GitHub. Opencode starts in the default model (configured in `~/.config/opencode/opencode.json`). If you change the model with `/models` or `ctrl-x+m` and hit TAB to toggle the mode, it will reset the selected model to the default one. System: Opencode V0.3.84 Ubuntu Linux
yindo closed this issue 2026-02-16 17:28:59 -05:00
Author
Owner

@ryanseddon commented on GitHub (Aug 4, 2025):

I think this could be related to an issue with how opencode remembers the mode you were in across sessions (It shouldn't do that IMO).

In my setup the default is sonnet-4 and in plan mode the model is gemini-2.5-pro but when I open another opencode instance it loads in plan mode with sonnet-4 selected and I have to tab tab to get it back to gemini 2.5

@ryanseddon commented on GitHub (Aug 4, 2025): I think this could be related to an issue with how opencode remembers the mode you were in across sessions (It shouldn't do that IMO). In my setup the default is sonnet-4 and in plan mode the model is gemini-2.5-pro but when I open another opencode instance it loads in plan mode with sonnet-4 selected and I have to tab tab to get it back to gemini 2.5
Author
Owner

@dmarjenburgh commented on GitHub (Aug 8, 2025):

Issue seems to have been fixed in the latest version

@dmarjenburgh commented on GitHub (Aug 8, 2025): Issue seems to have been fixed in the latest version
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#982