You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changing Agent unexpectedly also changes the selected model #61098
While using the latest desktop, I enabled the "Show agent" setting.
If I switch from "Build" to "Plan", this also changes my model, so I have to re-select the model I want to use.
I would expect that the default model is used when starting a session, not after I have already made manual changes to model selection during a session.
I'm guessing this is because the default model is applied for each of the Build and Plan agents, but the behavior seems unintuitive and feels like it would be better on a per-session basis rather than per-session, per-agent.
Plugins
N/A
OpenCode version
2.2.5
Steps to reproduce
Enable the "Show agent" setting.
Have at least 2 models to pick from, with one of them set as a the default model in the config.
The desktop app currently does this on purpose. It remembers a model choice per agent. When you switch from Build to Plan, it saves the model you picked under Build and restores the last model you picked under Plan. If you haven't picked one under Plan yet, you get Plan's configured model or the default. That's why your manual choice doesn't carry over.
What you're asking for is different: once you pick a model in a session, it should stay through agent switches, and the default should only apply when a session starts. I'm treating this as a feature request, and maintainers will consider it.
Activity
opencodejr commentedon Nov 1, 2026
Thanks for the clear report, @jrmcpeek!
The desktop app currently does this on purpose. It remembers a model choice per agent. When you switch from Build to Plan, it saves the model you picked under Build and restores the last model you picked under Plan. If you haven't picked one under Plan yet, you get Plan's configured model or the default. That's why your manual choice doesn't carry over.
What you're asking for is different: once you pick a model in a session, it should stay through agent switches, and the default should only apply when a session starts. I'm treating this as a feature request, and maintainers will consider it.
Related issues:
Tarquinen commentedon Nov 2, 2026
Thanks for the report! Keeping a hand-picked model across agent switches is tracked in #43179, so I'm closing this as a duplicate.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊