custom agents pick up default model instead of specified one, until toggled #2359

Closed
opened 2026-02-16 17:35:19 -05:00 by yindo · 1 comment
Owner

Originally created by @oribarilan on GitHub (Oct 30, 2025).

Description

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

  1. state a default model in opencode.jsonc
  2. create a custom agent markdown file, with a different model than the default from (1)
  3. exit opencode while being inside the custom agent
  4. reopen opencode and see the custom agent is being used, but with the default model

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @oribarilan on GitHub (Oct 30, 2025). ### Description 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 1. state a default model in opencode.jsonc 2. create a custom agent markdown file, with a different model than the default from (1) 3. exit opencode while being inside the custom agent 4. reopen opencode and see the custom agent is being used, but with the default model ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:35:19 -05:00
yindo closed this issue 2026-02-16 17:35:19 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #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.

@github-actions[bot] commented on GitHub (Oct 30, 2025): This issue might be a duplicate of existing issues. Please check: - #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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2359