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
opencode run ignores recently used model from TUI #12667
When using opencode run without --model (or any other way we specify the model), the CLI falls back to Provider.defaultModel() which picks a model based on sort priority. The TUI persists recently used models to model.json and checks them before falling back, but the CLI run path skips this. This means the CLI can select a different default model than what the user last used in the TUI.
Plugins
None
OpenCode version
1.1.53
Steps to reproduce
Launch opencode (TUI) and switch to a model of your choice and then exit.
Run opencode run 'Hello' without --model
And then if you see the session or see the model was used some other way, you will see that it did not respect our choice from the TUI
Activity
github-actions commentedon Feb 8, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.