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
Labels
bugSomething isn't working Description
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
- Start using Model A
- Trigger a subanget for which another model (Model B) is set in the config
- 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
github-actions commented on Jan 2, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if your specific case differs from these.
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, 20260serna commented on Jan 8, 2026
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.
rekram1-node commented on Jan 8, 2026
Reacted by Volker L. and Henry Moran
Reacted by Oscar Serna, Henry Moran and Marc Agbanchenou
iamhenry commented on Jan 11, 2026
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
added a commit that references this issue
on Feb 19, 2026This issue will close once commit 358f94b is merged into the 'dev' branch.358f94b taoeffect commented on Feb 22, 2026
Is this still an issue? I see there's been commit 358f94b that references this...
github-actions commented on Apr 23, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Metadata
Metadata
bugSomething isn't working Development
No branches or pull requestsIssue actions