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
'model' field in slash command appears to be ignored [Version: 0.6.4] #2460
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
Create .opencode/command/test.md:
---description: "Test command with specific model"agent: planmodel: cerebras/qwen-3-coder-480b---
This is a test command.
Run the command: /test
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.
This issue might be a duplicate of existing issues. Please check:
Chosen model is not used for command #2335: Chosen model is not used for command - This was about the model selection being ignored when running custom commands, which appears to be the exact same issue you're reporting with the model field in YAML frontmatter being ignored.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Sep 6, 2025
This issue might be a duplicate of existing issues. Please check:
modelfield in YAML frontmatter being ignored.Feel free to ignore if none of these address your specific case.