Skip to content

Model switch automatically when changing the mode #1661

Closed

Description

@onlyargon

When switch the mode from PLAN to BUILD or BUILD to PLAN just after launching the opencode, selected model changes to something else.

it's not a big issue until unless you have type something first and switch the mode. you can change the model easily with /models but if you have type something already and then /model is not working anymore and cannot switch the models

Activity

  1. anuramat commented on Sep 8, 2025

    @anuramat

    fyi you can use ctrl-x m to open the menu

  2. rekram1-node commented on Sep 13, 2025

    @rekram1-node
    Collaborator

    just fyi the model selection is tied to agent so when you switch agents it will switch to last used model for that agent (if the agent doesn’t have specified one)

  3. arsham commented on Sep 13, 2025

    @arsham

    You can also hit F2 to cycle through the recently used models.

  4. oribarilan commented on Oct 30, 2025

    @oribarilan
    Contributor

    issue is kind of partially described, but this is possibly solved by #3572

  5. rekram1-node commented on Oct 30, 2025

    @rekram1-node
    Collaborator

    this is fixed in the opentui version that will ship soon, but until then u can set:

    OPENCODE_AGENTS_SWITCH_SINGLE_MODEL=true

  6. onlyargon commented on Jan 27, 2026

    @onlyargon
    Author

    This is no longer happening and resolved long go. Closing now

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions