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 — Subagent with specific model results in model change in build and plan mode · Issue #6636 · anomalyco/opencode

Subagent with specific model results in model change in build and plan mode #6636

New issue
Copy link
New issue
Copy link
Closed
Closed
Subagent with specific model results in model change in build and plan mode#6636
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@legout
legout
opened on Jan 2, 2026
Issue body actions

Description

When using a subagent with a specific model, it happens, with the current version (1.0.223), that the main models (build and plan) is also changed to the subagents model. This did not happen before. Is this intentional? Can I reset/configure this somehow?

OpenCode version

1.0.223

Steps to reproduce

  1. Start using Model A
  2. Trigger a subanget for which another model (Model B) is set in the config
  3. After the subagent finished, the Model B is also set for the main agents (build and plan)

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

wezterm

Reacted by Oscar Serna, Davlatjon Sh, Luco Bellic and romain-flw

Activity

  1. legout
    added
    bugSomething isn't working
    on Jan 2, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 2, 2026
  3. github-actions commented on Jan 2, 2026

    @github-actions
    github-actionsBot
    on Jan 2, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Selected model for agent in TUI doesn't stick between Agent Alternation #4344: Model doesn't stick when switching between agents - similar issue where agent model changes unexpectedly
    • Plugins using noReply seem to cause model to switch to agent default  #4475: Plugins/tools causing model to switch to agent default - may be related mechanism
    • [FEATURE]: {env:MY_VAR} support in agent yaml #5054: Feature request for environment variable control of models - users seeking better model configuration management

    Feel free to ignore if your specific case differs from these.

  4. legout
    changed the title [-]Subagent with specific model results in model change in build and plan[/-] [+]Subagent with specific model results in model change in build and plan mode[/+] on Jan 2, 2026
  5. 0serna commented on Jan 8, 2026

    @0serna
    0serna
    on Jan 8, 2026
    More actions

    This has also been happening to me with custom commands that use a different model than the main agent, even if the command is configured as a subtask or subagent.

    Reacted by Volker L.
  6. rekram1-node commented on Jan 8, 2026

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

    ill fix

    Reacted by Volker L. and Henry Moran
    Reacted by Oscar Serna, Henry Moran and Marc Agbanchenou
  7. iamhenry commented on Jan 11, 2026

    @iamhenry
    iamhenry
    on Jan 11, 2026
    More actions

    i have the same issue
    my commit slash command = grok model
    opus configured to be default for build agent

    when i run the commit slash command with subtask: true it uses the build opus model

  8. ArmirKS
    added a commit that references this issue on Feb 19, 2026

    fix(session): prevent concurrent prompt() from creating duplicate use…

    This issue will close once commit 358f94b is merged into the 'dev' branch.
    358f94b
  9. taoeffect commented on Feb 22, 2026

    @taoeffect
    taoeffect
    on Feb 22, 2026
    More actions

    Is this still an issue? I see there's been commit 358f94b that references this...

  10. github-actions commented on Apr 23, 2026

    @github-actions
    github-actionsBot
    on Apr 23, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  11. github-actions
    closed this as completedon Apr 23, 2026
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 working

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.