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 switches back to the original selection after prompting #4281
if you start Opencode with a specific model set as a default (in my case - Anthropic Claude Sonnet 4.5), then during session you switch to another model (in my case - Bedrock Claude Sonnet 4.5), after the model finished working on the prompt and you try prompting again - the model will switch back to the original (default) selection. This was not the case before
Note
In my case, I also notice that I can't prompt anymore during that session anymore. My prompts just don't trigger anything
However I left this out because I've currently hit my limit on Claude MAX account so I could blame this bug to the way
OpenCode handles Claude MAX limits (I think it doesn't, KEKW)
OpenCode version
1.0.61
Steps to reproduce
Open the TUI with Anthropic Claude Sonnet 4.5 selected
Switch the model using <leader> + m keybind to Bedrock Claude Sonnet 4.5
Current OpenCode (1.1.25) changes model after entering the first prompt after launching. I have Copilot connected and the starting box shows the last model I worked with (say GPT 5.2). After I enter any prompt the model changes to Gemini 3 Pro Preview from Copilot. This is super-annoying as I cannot change this behavior in any way. Pre-selecting other model does nothing.
Current OpenCode (1.1.25) changes model after entering the first prompt after launching. I have Copilot connected and the starting box shows the last model I worked with (say GPT 5.2). After I enter any prompt the model changes to Gemini 3 Pro Preview from Copilot. This is super-annoying as I cannot change this behavior in any way. Pre-selecting other model does nothing.
im having this same exact issue, but instead the model always changes to Claude Opus 4.5. So annoying.
I'm having this issue in 1.1.26 as well. It will default to a seemingly random model, Gemini 3 Pro in this instance, and changing the model to anything else will apply on a new session. I hate to enter the first prompt, interrupt, change the model, and then redo the initial message.
This did it for me. Also make sure to also replace ~/.config/opencode/plugin/superpowers.js with ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js. Otherwise you will black screen.
Activity
github-actions commentedon Nov 13, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 13, 2025
/oc can u figure out what's causing this bug
opencode-agent commentedon Nov 13, 2025
Created PR #4296
opencode session | github run
rekram1-node commentedon Nov 18, 2025
Hm I can't replicate think this was fixed
AdiKsOnDev commentedon Nov 18, 2025
Haven't faced this issue since last couple updates too, so perhaps. I'll lyk if it happens again, thanks 4 attention
dekoza commentedon Jan 20, 2026
Current OpenCode (1.1.25) changes model after entering the first prompt after launching. I have Copilot connected and the starting box shows the last model I worked with (say GPT 5.2). After I enter any prompt the model changes to
Gemini 3 Pro Previewfrom Copilot. This is super-annoying as I cannot change this behavior in any way. Pre-selecting other model does nothing.ebreen commentedon Jan 21, 2026
im having this same exact issue, but instead the model always changes to Claude Opus 4.5. So annoying.
iam-brain commentedon Jan 21, 2026
I'm having this issue in 1.1.26 as well. It will default to a seemingly random model, Gemini 3 Pro in this instance, and changing the model to anything else will apply on a new session. I hate to enter the first prompt, interrupt, change the model, and then redo the initial message.
rekram1-node commentedon Jan 21, 2026
Are any of you using plugins? Because if so I think your plugin is changing it in some way...
iam-brain commentedon Jan 21, 2026
My current setup only has obra superpowers, opencode antigravity auth, and playwright MCP. Standard opencode install otherwise.
rekram1-node commentedon Jan 21, 2026
well that's an obra issue obra/superpowers#301 @iam-brain
rekram1-node commentedon Jan 21, 2026
How about the rest of you?
ebreen commentedon Jan 22, 2026
Can confirm it was the Superpowers skill that caused this issue for me.
Fixed after uninstalling Superpowers.
iam-brain commentedon Jan 22, 2026
Unfortunately, uninstalling superpowers seems to have fixed it for me as well. Looks like there might not be a good fix for it at the moment.
koosty commentedon Jan 24, 2026
Update superpowers
golamt313 commentedon Jan 29, 2026
This did it for me. Also make sure to also replace ~/.config/opencode/plugin/superpowers.js with ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js. Otherwise you will black screen.
iam-brain commentedon Jan 30, 2026
I can also confirm that Obra has finally fixed the issue since that comment was posted.