custom agents pick up default model instead of specified one, until toggled · Issue #3571 · anomalyco/opencode · GitHub
Skip to content

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

Closed

Description

@oribarilan

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

Activity

  1. github-actions commented on Oct 30, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions