Fix model search being prefilled on dropdown #5449
Merged
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.
Hi Roo Team! At Kilo Code we got this small QoL request and fixed it on our side so we thought this might be useful to you too!
We've seen it come by on our Discord quite often as an annoyance so hopefully this is helpful to you too.
This prevents the search from opening like this:

and instead makes it open like this, which is much more logical and less confusing:

Test Procedure
Type of Change
Important
Fix
ModelPickerto not prefill search input with selected model ID when dropdown opens, focusing with an empty value instead.ModelPickerno longer pre-fills search input with selected model ID when dropdown opens.useStateforsearchValueinitialized to empty string inModelPicker.onSelectandonOpenChangecallbacks updated to clearsearchValueon close.searchValueto selected model ID.This description was created by
for 91d523e. You can customize this summary. It will automatically update as commits are pushed.