Skip to content

Changing Agent unexpectedly also changes the selected model #61098

Closed as duplicate

Description

@jrmcpeek

Description

While using the latest desktop, I enabled the "Show agent" setting.

If I switch from "Build" to "Plan", this also changes my model, so I have to re-select the model I want to use.

I would expect that the default model is used when starting a session, not after I have already made manual changes to model selection during a session.

I'm guessing this is because the default model is applied for each of the Build and Plan agents, but the behavior seems unintuitive and feels like it would be better on a per-session basis rather than per-session, per-agent.

Plugins

N/A

OpenCode version

2.2.5

Steps to reproduce

  1. Enable the "Show agent" setting.
  2. Have at least 2 models to pick from, with one of them set as a the default model in the config.
  3. Start a new session.
  4. Switch to the non-default model.
  5. Switch from the build agent to the plan agent.
  6. Observe that the model changes unexpectedly.

Screenshot

No response

Operating System

RHEL 9.6

Terminal

bash

Activity

  1. opencodejr commented on Nov 1, 2026

    @opencodejr

    Thanks for the clear report, @jrmcpeek!

    The desktop app currently does this on purpose. It remembers a model choice per agent. When you switch from Build to Plan, it saves the model you picked under Build and restores the last model you picked under Plan. If you haven't picked one under Plan yet, you get Plan's configured model or the default. That's why your manual choice doesn't carry over.

    What you're asking for is different: once you pick a model in a session, it should stay through agent switches, and the default should only apply when a session starts. I'm treating this as a feature request, and maintainers will consider it.

    Related issues:

  2. Tarquinen commented on Nov 2, 2026

    @Tarquinen
    Member

    Thanks for the report! Keeping a hand-picked model across agent switches is tracked in #43179, so I'm closing this as a duplicate.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

No one assigned

    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