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
Model ID auto-switches silently during session #28842
The model ID used in a session auto-switches silently (no error, no prompt) to a different model, both at restart time and mid-conversation. There is no fixed pattern — switches observed between OpenAI models and DeepSeek models, and vice versa.
Steps to Reproduce (observed, not perfectly consistent)
Start a session with an explicitly set model.
Either restart OpenCode or continue a long conversation.
At some point, the session silently starts using a different model (e.g. deepseek-ai/DeepSeek-V4-Flash or another model) without any notification.
Expected Behavior
The model should remain stable throughout the session unless the user explicitly changes it (via /model or config edit). Any automatic fallback or switch should be clearly communicated to the user.
Actual Behavior
The model switches silently. The user only notices because response behavior changes (e.g. sudden loss of reasoning, different response style).
Environment
OpenCode version: latest
Observed with gpt-5.4-mini → deepseek-ai/DeepSeek-V4-Flash and other combinations
If your issue is distinct from these (e.g. it occurs mid-conversation rather than only on the first message, or involves provider routing logic rather than UI picker state), please add a comment clarifying the difference.
This just happened to me. I'm on version 1.17.3. The bug is inconsistent. I was in the middle of a session, I added a different model as favorite, and then I got a silent model ID switch, but I can't reproduce.
For what is worth, in my case it seems to auto-switch to the last model found in my favorite list.
Activity
github-actions commentedon May 22, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from these (e.g. it occurs mid-conversation rather than only on the first message, or involves provider routing logic rather than UI picker state), please add a comment clarifying the difference.
YoungJurry commentedon May 22, 2026
This issue is distinct from #16313 and #23666:
This suggests the issue may be in the provider/model routing logic rather than in UI state persistence.
rekram1-node commentedon May 22, 2026
are u using plugins?
YoungJurry commentedon May 22, 2026
what i use is dcp ,"@tarquinen/opencode-dcp@latest",just this
rekram1-node commentedon May 22, 2026
maybe share
opencode debug configRubonnek commentedon Jun 11, 2026
This just happened to me. I'm on version
1.17.3. The bug is inconsistent. I was in the middle of a session, I added a different model as favorite, and then I got a silent model ID switch, but I can't reproduce.For what is worth, in my case it seems to auto-switch to the last model found in my favorite list.
Here's my
opencode debug configoutput:github-actions commentedon Aug 11, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.