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
Model selection in /command incorrectly changes the default model #8452
When executing a /command that specifies a different model than the current default, after the command completes, the default model setting is incorrectly changed to the model specified in the command.
Steps to Reproduce
Select a default model (e.g., glm-4.7) in OpenCode settings
Use a /command that specifies a different model with open subtask: true, for example:
/command zhipuai-coding-plan/glm-4.6 open subtask: true
Wait for the command to finish running
Check the default model setting
Expected Behavior
The default model should remain as glm-4.7 (the originally selected model). The model specified in the command (glm-4.6) should only be used for that specific subtask execution.
Actual Behavior
The default model setting changes from glm-4.7 to glm-4.6 after the command completes.
Impact
Users lose their preferred default model setting when using commands that specify different models, requiring them to manually reset their preferred model after each command execution.
These issues describe similar behavior where model selection changes after running commands or subagents. Feel free to ignore if your specific case differs from these.
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
These issues describe similar behavior where model selection changes after running commands or subagents. Feel free to ignore if your specific case differs from these.
rekram1-node commentedon Jan 16, 2026
should be fixed in next release