Skip to content

Model switches back to the original selection after prompting #4281

Closed

Description

@AdiKsOnDev

Description

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

  1. Open the TUI with Anthropic Claude Sonnet 4.5 selected
  2. Switch the model using <leader> + m keybind to Bedrock Claude Sonnet 4.5
  3. Prompt
  4. Prompt again
  5. (Hopefully) Notice the model being switched back.

Screenshot and/or share link

https://opencode.ai/s/52SxnB2F

Operating System

Arch Linux (6.17.7-arch1-1) with Hyprland

Terminal

Kitty terminal + zsh

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 13, 2025
  2. github-actions commented on Nov 13, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Nov 13, 2025

    @rekram1-node
    Contributor

    /oc can u figure out what's causing this bug

  4. opencode-agent commented on Nov 13, 2025

    @opencode-agent
    Contributor

    Created PR #4296

    New%20session%20-%202025-11-13T18%3A00%3A55.675Z
    opencode session  |  github run

  5. self-assigned this
    on Nov 17, 2025
  6. rekram1-node commented on Nov 18, 2025

    @rekram1-node
    Contributor

    Hm I can't replicate think this was fixed

  7. AdiKsOnDev commented on Nov 18, 2025

    @AdiKsOnDev
    Author

    Hm I can't replicate think this was fixed

    Haven't faced this issue since last couple updates too, so perhaps. I'll lyk if it happens again, thanks 4 attention

  8. dekoza commented on Jan 20, 2026

    @dekoza

    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.

  9. ebreen commented on Jan 21, 2026

    @ebreen

    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.

  10. iam-brain commented on Jan 21, 2026

    @iam-brain

    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.

  11. rekram1-node commented on Jan 21, 2026

    @rekram1-node
    Contributor

    Are any of you using plugins? Because if so I think your plugin is changing it in some way...

  12. iam-brain commented on Jan 21, 2026

    @iam-brain

    Are any of you using plugins? Because if so I think your plugin is changing it in some way...

    My current setup only has obra superpowers, opencode antigravity auth, and playwright MCP. Standard opencode install otherwise.

  13. rekram1-node commented on Jan 21, 2026

    @rekram1-node
    Contributor

    well that's an obra issue obra/superpowers#301 @iam-brain

  14. rekram1-node commented on Jan 21, 2026

    @rekram1-node
    Contributor

    How about the rest of you?

  15. ebreen commented on Jan 22, 2026

    @ebreen

    How about the rest of you?

    Can confirm it was the Superpowers skill that caused this issue for me.
    Fixed after uninstalling Superpowers.

  16. iam-brain commented on Jan 22, 2026

    @iam-brain

    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.

  17. koosty commented on Jan 24, 2026

    @koosty

    Update superpowers

    cd ~/.config/opencode/superpowers
    git pull
    
  18. golamt313 commented on Jan 29, 2026

    @golamt313

    Update superpowers

    cd ~/.config/opencode/superpowers
    git pull
    

    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.

  19. iam-brain commented on Jan 30, 2026

    @iam-brain

    Update superpowers

    cd ~/.config/opencode/superpowers
    git pull
    

    I can also confirm that Obra has finally fixed the issue since that comment was posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions