-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: Model switch re-applies selected profile (sync task.apiConfiguration) (#9179) #9181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+84
−18
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Reviewed latest commit (70de139). One issue from the previous review has been resolved. One issue remains:
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
daniel-lxs
reviewed
Nov 12, 2025
daniel-lxs
reviewed
Nov 12, 2025
…in ClineProvider.updateTaskApiHandlerIfNeeded(); address review feedback
daniel-lxs
approved these changes
Nov 12, 2025
mrubens
approved these changes
Nov 12, 2025
mini2s
added a commit
to zgsm-ai/costrict
that referenced
this pull request
Nov 12, 2025
Related GitHub Issue
Closes: #9179
Roo Code Task Context (Optional)
No Roo Code task context for this PR
Description
Synchronize the running task’s API configuration when switching provider profiles so the selected model/profile is immediately applied to the active task.
What changed:
Why:
Test Procedure
Pre-Submission Checklist
Screenshots / Videos
No UI changes in this PR
Documentation Updates
Additional Notes
None
Get in Touch
@hannesrudolph
Important
Synchronize task's API configuration on provider profile switch in
ClineProvider.ts, ensuring correct model/profile application, with tests verifying behavior.updateTaskApiHandlerIfNeeded()inClineProvider.tsnow always syncstask.apiConfigurationwithproviderSettings, ensuring the current profile is applied.ClineProvider.apiHandlerRebuild.spec.tsto verify thattask.apiConfigurationis synced even when provider/model is unchanged.task.apiConfigurationupdates correctly.This description was created by
for 70de139. You can customize this summary. It will automatically update as commits are pushed.