Model switch automatically when changing the mode #1140

Closed
opened 2026-02-16 17:29:36 -05:00 by yindo · 6 comments
Owner

Originally created by @onlyargon on GitHub (Aug 6, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When switch the mode from PLAN to BUILD or BUILD to PLAN just after launching the opencode, selected model changes to something else.

it's not a big issue until unless you have type something first and switch the mode. you can change the model easily with /models but if you have type something already and then /model is not working anymore and cannot switch the models

Originally created by @onlyargon on GitHub (Aug 6, 2025). Originally assigned to: @adamdotdevin on GitHub. When switch the mode from PLAN to BUILD or BUILD to PLAN just after launching the opencode, selected model changes to something else. it's not a big issue until unless you have type something first and switch the mode. you can change the model easily with /models but if you have type something already and then /model is not working anymore and cannot switch the models
yindo closed this issue 2026-02-16 17:29:36 -05:00
Author
Owner

@anuramat commented on GitHub (Sep 8, 2025):

fyi you can use ctrl-x m to open the menu

@anuramat commented on GitHub (Sep 8, 2025): fyi you can use `ctrl-x m` to open the menu
Author
Owner

@rekram1-node commented on GitHub (Sep 13, 2025):

just fyi the model selection is tied to agent so when you switch agents it will switch to last used model for that agent (if the agent doesn’t have specified one)

@rekram1-node commented on GitHub (Sep 13, 2025): just fyi the model selection is tied to agent so when you switch agents it will switch to last used model for that agent (if the agent doesn’t have specified one)
Author
Owner

@arsham commented on GitHub (Sep 13, 2025):

You can also hit F2 to cycle through the recently used models.

@arsham commented on GitHub (Sep 13, 2025): You can also hit `F2` to cycle through the recently used models.
Author
Owner

@oribarilan commented on GitHub (Oct 30, 2025):

issue is kind of partially described, but this is possibly solved by #3572

@oribarilan commented on GitHub (Oct 30, 2025): issue is kind of partially described, but this is possibly solved by #3572
Author
Owner

@rekram1-node commented on GitHub (Oct 30, 2025):

this is fixed in the opentui version that will ship soon, but until then u can set:

OPENCODE_AGENTS_SWITCH_SINGLE_MODEL=true

@rekram1-node commented on GitHub (Oct 30, 2025): this is fixed in the opentui version that will ship soon, but until then u can set: OPENCODE_AGENTS_SWITCH_SINGLE_MODEL=true
Author
Owner

@onlyargon commented on GitHub (Jan 27, 2026):

This is no longer happening and resolved long go. Closing now

@onlyargon commented on GitHub (Jan 27, 2026): This is no longer happening and resolved long go. Closing now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1140