You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Subagent with specific model results in model change in build and plan mode #6636
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)
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
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.
Activity
github-actions commentedon 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.
[-]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[/+]0serna commentedon 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 commentedon Jan 8, 2026
ill fix
iamhenry commentedon 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: trueit uses the build opus modelfix(session): prevent concurrent prompt() from creating duplicate use…
taoeffect commentedon Feb 22, 2026
Is this still an issue? I see there's been commit 358f94b that references this...
github-actions commentedon 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.