Skip to content

fix: model flag in none interactive mode#2249

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
timoclsn:fix-none-interactive-model-selection
Aug 25, 2025
Merged

fix: model flag in none interactive mode#2249
rekram1-node merged 2 commits into
anomalyco:devfrom
timoclsn:fix-none-interactive-model-selection

Conversation

@timoclsn

Copy link
Copy Markdown
Contributor

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).

@rekram1-node

Copy link
Copy Markdown
Collaborator

tested locally, fix works

@rekram1-node
rekram1-node merged commit 012a292 into anomalyco:dev Aug 25, 2025
1 check passed
@timoclsn
timoclsn deleted the fix-none-interactive-model-selection branch August 25, 2025 20:09
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants