[PR #2249] fix: model flag in none interactive mode #10244

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

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

State: closed
Merged: Yes


When using the run command, the model defined in the currently used agent was preferred even if a specific model was given with the --model flag.

This reverses the logic and prefers the --model flag by removing unnecessary logic (choosing the right model is already handled in line 46).

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2249 **State:** closed **Merged:** Yes --- When using the `run` command, the model defined in the currently used agent was preferred even if a specific model was given with the --model flag. This reverses the logic and prefers the --model flag by removing unnecessary logic (choosing the right model is already handled in line 46).
yindo added the pull-request label 2026-02-16 18:14:52 -05:00
yindo closed this issue 2026-02-16 18:14:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10244