[PR #3572] Fixing agent model selection priority issue #10694

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

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

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3572 **State:** closed **Merged:** Yes --- 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
yindo added the pull-request label 2026-02-16 18:15:26 -05:00
yindo closed this issue 2026-02-16 18:15:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10694