GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Model switches back to the original selection after prompting · Issue #4281 · anomalyco/opencode

Model switches back to the original selection after prompting #4281

New issue
Copy link
New issue
Copy link
Closed
Closed
Model switches back to the original selection after prompting#4281
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@AdiKsOnDev
AdiKsOnDev
opened on Nov 13, 2025
Issue body actions

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. AdiKsOnDev
    added
    bugSomething isn't working
    on Nov 13, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 13, 2025
  3. github-actions commented on Nov 13, 2025

    @github-actions
    github-actionsBot
    on Nov 13, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Cycle through model do not work when a default model is set #4243: Model cycling issues when default model is set (same version 1.0.61) - describes the exact same problem where model selection reverts to default after switching
    • Model switch automatically when changing the mode #1661: Model switching problems between plan/build modes - similar behavior where models don't persist selection properly

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

  4. rekram1-node commented on Nov 13, 2025

    @rekram1-node
    rekram1-node
    on Nov 13, 2025
    Member
    More actions

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

  5. opencode-agent commented on Nov 13, 2025

    @opencode-agent
    opencode-agentBot
    on Nov 13, 2025 – with OpenCode Agent
    Contributor
    More actions

    Created PR #4296

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

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

    @rekram1-node
    rekram1-node
    on Nov 18, 2025
    Member
    More actions

    Hm I can't replicate think this was fixed

  8. rekram1-node
    closed this as completedon Nov 18, 2025
  9. AdiKsOnDev commented on Nov 18, 2025

    @AdiKsOnDev
    AdiKsOnDev
    on Nov 18, 2025
    Author
    More actions

    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

    Reacted by Aiden Cline
  10. dekoza commented on Jan 20, 2026

    @dekoza
    dekoza
    on Jan 20, 2026
    More actions

    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.

    Reacted by Marno and 邓胜亮
  11. ebreen commented on Jan 21, 2026

    @ebreen
    ebreen
    on Jan 21, 2026
    More actions

    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.

    Reacted by Marno
  12. iam-brain commented on Jan 21, 2026

    @iam-brain
    iam-brain
    on Jan 21, 2026
    More actions

    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.

    Reacted by Marno
  13. rekram1-node commented on Jan 21, 2026

    @rekram1-node
    rekram1-node
    on Jan 21, 2026
    Member
    More actions

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

  14. iam-brain commented on Jan 21, 2026

    @iam-brain
    iam-brain
    on Jan 21, 2026
    More actions

    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.

  15. rekram1-node commented on Jan 21, 2026

    @rekram1-node
    rekram1-node
    on Jan 21, 2026
    Member
    More actions

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

    Reacted by Kustian
  16. rekram1-node commented on Jan 21, 2026

    @rekram1-node
    rekram1-node
    on Jan 21, 2026
    Member
    More actions

    How about the rest of you?

  17. ebreen commented on Jan 22, 2026

    @ebreen
    ebreen
    on Jan 22, 2026
    More actions

    How about the rest of you?

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

  18. iam-brain commented on Jan 22, 2026

    @iam-brain
    iam-brain
    on Jan 22, 2026
    More actions

    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.

    Reacted by Marno
  19. koosty commented on Jan 24, 2026

    @koosty
    koosty
    on Jan 24, 2026
    More actions

    Update superpowers

    cd ~/.config/opencode/superpowers
    git pull
    
    Reacted by golamt313, iam-brain and Aleksandar Mitic
  20. golamt313 commented on Jan 29, 2026

    @golamt313
    golamt313
    on Jan 29, 2026
    More actions

    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.

  21. iam-brain commented on Jan 30, 2026

    @iam-brain
    iam-brain
    on Jan 30, 2026
    More actions

    Update superpowers

    cd ~/.config/opencode/superpowers
    git pull
    

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

    Reacted by Aleksandar Mitic and Morgan Kesler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.