Skip to content

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

Closed

Description

@legout

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

Activity

  1. github-actions commented on Jan 2, 2026

    @github-actions
    Contributor

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

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

  2. 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
  3. 0serna commented on Jan 8, 2026

    @0serna

    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.

  4. rekram1-node commented on Jan 8, 2026

    @rekram1-node
    Contributor

    ill fix

  5. iamhenry commented on Jan 11, 2026

    @iamhenry

    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

  6. added a commit that references this issue on Feb 19, 2026
    358f94b
  7. taoeffect commented on Feb 22, 2026

    @taoeffect

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

  8. github-actions commented on Apr 23, 2026

    @github-actions
    Contributor

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

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 working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions