Skip to content

Fixing agent model selection priority issue#3572

Merged
rekram1-node merged 9 commits into
anomalyco:devfrom
oribarilan:fix/agent-model-selection
Oct 30, 2025
Merged

Fixing agent model selection priority issue#3572
rekram1-node merged 9 commits into
anomalyco:devfrom
oribarilan:fix/agent-model-selection

Conversation

@oribarilan

@oribarilan oribarilan commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

This pull request updates the priority ordering for model selection in the InitializeProvider method and adds tests to ensure the logic works as intended. The main change is that the agent's preferred model is now checked before the config file's model setting, which affects how the application chooses which provider and model to use.

Fix was verified locally e2e (on top of the added test)

fixes: #3571
fixes: #3550

@oribarilan
oribarilan force-pushed the fix/agent-model-selection branch from 932f438 to 8178638 Compare October 30, 2025 13:49
@rekram1-node

Copy link
Copy Markdown
Collaborator

nice work thank u

@rekram1-node
rekram1-node merged commit 2d5df3a into anomalyco:dev Oct 30, 2025
3 checks passed
@oribarilan
oribarilan deleted the fix/agent-model-selection branch October 30, 2025 14:48
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
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request Jun 14, 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.

custom agents pick up default model instead of specified one, until toggled OpenCode Agent toggle does not honor the agent model specification

2 participants