Skip to content

'model' field in slash command appears to be ignored [Version: 0.6.4] #2461

Closed

Description

@Sewer56
Image Image

Description

The model field in slash command YAML frontmatter appears to be ignored, causing commands to fall back to the default model without any user notification.

This is documented in the [commands[(https://opencode.ai/docs/commands/) section of the docs, suggesting that the docs are out of sync.

Steps to Reproduce

  1. Create .opencode/command/test.md:

    ---
    description: "Test command with specific model"
    agent: plan
    model: cerebras/qwen-3-coder-480b
    ---
    
    This is a test command.
  2. Run the command: /test

  3. Observe that the command executes with the default model instead of the specified model

Tested with cerebras/qwen-3-coder-480b, github-copilot/claude-sonnet-4 and anthropic/claude-sonnet-4-20250514. Neither of the 3 models worked in the 'model' field.

Activity

  1. github-actions commented on Sep 6, 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.

  2. Sewer56 commented on Sep 6, 2025

    @Sewer56
    ContributorAuthor

    NOT a duplicate of #2335. This is the opposite issue.
    I accidentally fell for the bot message and closed last one- oops.

    Rather than the model selected not being used in commands- here the model override defined in commands is not being used.

    I haven't yet bisected to determine if the fix for 2335 is the cause, or whatever other commit it may be- I'm currently travelling 😅, hence have not yet started proper debugging.

  3. self-assigned this
    on Sep 6, 2025
  4. rekram1-node commented on Sep 6, 2025

    @rekram1-node
    Collaborator

    I just fixed this yesterday: #2448

    will ship w/ next release

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions