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
agents switch does not respect the custom model with id #3015
The issue is that the /agents command switches the agent, but it does not change the model specified in the "model" field of that agent, if the model is an extended custom model with an "id" field.
If you manually select the model, the model works.
changed the title [-]model switch does not respect the custom model with id[/-][+]agents switch does not respect the custom model with id[/+]on Oct 7, 2025
The core issue appears to be that when using custom models with extended configurations (including the 'id' field), the agent switching mechanism doesn't properly handle the model selection. Issues #2877 and #2829 were already referenced in your description and deal with the same 'id' feature that landed recently.
Feel free to ignore if none of these address your specific case.
Activity
[-]model switch does not respect the custom model with id[/-][+]agents switch does not respect the custom model with id[/+]github-actions commentedon Oct 7, 2025
This issue might be a duplicate of existing issues. Please check:
The core issue appears to be that when using custom models with extended configurations (including the 'id' field), the agent switching mechanism doesn't properly handle the model selection. Issues #2877 and #2829 were already referenced in your description and deal with the same 'id' feature that landed recently.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 7, 2025
@towry hmm can you share your agent definition? So I can see how you are referencing the model?
Perhaps your opencode.json too so I can see the model id there?
if you run:
opencode debug configit should give me both of those
towry commentedon Oct 7, 2025
I masked the api key and removed some content in the prompt.
towry commentedon Oct 7, 2025
2025-10-07.23.52.31.mov
If i change the model of "plan" agent to model without id, the "tab" or "/agents" switch works.
towry commentedon Oct 7, 2025
rekram1-node commentedon Oct 7, 2025
ah ik issue then. will need to think about solution
rekram1-node commentedon Oct 14, 2025
will be fixed in next release
towry commentedon Oct 14, 2025
Working great!