Conversation
RSO
approved these changes
Feb 4, 2026
|
Deployment failed with the following error: Learn More: https://vercel.com/docs/functions/limitations |
| // Sync selectedModel when a different project loads (projectModel changes from initial) | ||
| useEffect(() => { | ||
| if (projectModel) { | ||
| if (projectModel && projectModel !== initialProjectModelRef.current) { |
Contributor
There was a problem hiding this comment.
WARNING: Model sync only triggers when the model ID string changes
If you navigate to a different project that happens to use the same projectModel value as the previous project, this effect will not run, so selectedModel can incorrectly carry over a prior user selection. Consider keying this sync off a project identity (e.g., project id / manager) rather than projectModel value, or resetting selectedModel when the manager/project changes.
Contributor
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)WARNING
Other Observations (not in diff)Issues found in unchanged code that cannot receive inline comments: None. Files Reviewed (4 files)
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
selectedModelwhile waiting for the models API to load, then failed to restore it becauseprojectModelwas always truthy (defaults toanthropic/claude-sonnet-4)Changes
initialProjectModelRef) to track the initial project model and only sync when a different project loads