[PR #2219] fix: command model selection #10239

Closed
opened 2026-02-16 18:14:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2219

State: closed
Merged: Yes


Existing behavior seems unintentional?

If I don't set a model w/ a slash command it basically uses my "default model" which is "grok-3-mini" apparently just due to how the defaultModel function finds default model, anyway that model is useless can't send anything to it.

Expectation:

If a command doesn't have a set model or agent it should just use the same model I am already using in my chat. That would make more sense to me

Change in words:

  • if command specifies a model use it
  • if command specifies an agent use it
  • if user has a model selected use it
  • if user has an agent selected use it <-- not really necessary but just there for consistency
  • use default model otherwise
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2219 **State:** closed **Merged:** Yes --- ### Existing behavior seems unintentional? If I don't set a model w/ a slash command it basically uses my "default model" which is "grok-3-mini" apparently just due to how the defaultModel function finds default model, anyway that model is useless can't send anything to it. ### Expectation: If a command doesn't have a set model or agent it should just use the same model I am already using in my chat. That would make more sense to me ### Change in words: - if command specifies a model use it - if command specifies an agent use it - if user has a model selected use it - if user has an agent selected use it <-- not really necessary but just there for consistency - use default model otherwise
yindo added the pull-request label 2026-02-16 18:14:51 -05:00
yindo closed this issue 2026-02-16 18:14:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10239