Skip to content

Model/Agent selection on the intro screen not applied #4981

Closed as duplicate

Description

@Nindaleth

Description

After starting OpenCode, the intro screen allows switching the model and/or agent, however the first request is always done with the Build agent and the model configured in opencode.json. Sending the request, immediately interrupting and then switching the model/agent works as expected.

If I remove the "model" setting from opencode.json, I still get some other model than the one I asked for.

This is problematic in two ways:

  • wasting GH Copilot premium request even at the times when I don't need the premium model
  • running the read-write agent even when I asked for a read-only one

OpenCode version

v1.0.126

Steps to reproduce

  1. In opencode.json, configure a model (e.g. "model": "github-copilot/claude-sonnet-4.5")
  2. Start opencode
  3. Switch agent from Build to Plan or switch the model (I used ctrl+x m) from the default to other one
  4. Type in a prompt and submit - other combination processes the request

Screenshot and/or share link

Image

After sending the request we can see a different model/agent is processing:

Image

Operating System

No response

Terminal

No response

Activity

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

    @github-actions
    Contributor

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

    These issues all relate to the model/agent selection not being retained after certain operations. Feel free to ignore if your specific case differs from these.

  3. Nindaleth commented on Dec 2, 2025

    @Nindaleth
    ContributorAuthor

    After seeing #4475 and #4901 - both these issues and this issue I just created very possibly describe the same thing. I'm using obra/superpowers plugin which does use noReply: true.

  4. changed the title [-]Model/Agent selection on the intro screen not applied if model configured[/-] [+]Model/Agent selection on the intro screen not applied[/+] on Dec 2, 2025
  5. Nindaleth commented on Dec 2, 2025

    @Nindaleth
    ContributorAuthor

    Confirmed, without using plugins the first message respects my agent/model selection.

  6. self-assigned this
    on Dec 2, 2025
  7. Andrewske commented on Dec 13, 2025

    @Andrewske

    I also had this issue and was using superpowers and removing it solved the issue

  8. rekram1-node commented on Dec 13, 2025

    @rekram1-node
    Contributor

    ill close this as a duplicate and get the bug addressed soon, waiting on Daxs branch to merge in

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