Skip to content

Model selection priority broken #17783

Closed as not planned
Closed as not planned

Description

@gheljenor

Description

According to docs, --model argument from CLI has highest priority. But if i specify any model in my agent/command markdown, they always run with specified model, ignoring any --model provided.

Plugins

No response

OpenCode version

1.2.6

Steps to reproduce

  1. create .opencode/commands/my-command.md with content
---
description: Debug command
model: kimi/deepseek-ai/deepseek-v3.1
---

Say hello
  1. run opencode run --command my-command --model "kimi/deepseek-ai/deepseek-r1"

It will run with kimi/deepseek-ai/deepseek-v3.1 model

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 16, 2026
  2. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  3. github-actions commented on Jul 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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