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
custom agents pick up default model instead of specified one, until toggled #3571
If opencode opens in a custom agent, it will use the default model (e.g., stated in opencode.jsonc) instead of using the specific model stated in the agent markdown file (e.g., doc.md), unless the agent is being "toggled into" (clicking tab until it is seen again).
I can also try and take this issue if okay.
OpenCode version
0.15.29 (latest)
Steps to reproduce
state a default model in opencode.jsonc
create a custom agent markdown file, with a different model than the default from (1)
exit opencode while being inside the custom agent
reopen opencode and see the custom agent is being used, but with the default model
This issue might be a duplicate of existing issues. Please check:
OpenCode Agent toggle does not honor the agent model specification #3550: Both issues describe the same core problem where custom agents pick up the default model instead of their specified model, and the model specification is only honored when toggling/restarting but gets reset when cycling through agents
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Oct 30, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.