[PR #10106] fix(tui): add weight to fuzzy search to maintain title priority #13337

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

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

State: closed
Merged: Yes


What does this PR do?

Fix TUI's command search filtering to maintain proper result prioritization throughout typing by adding weights to fuzzy search scoring where title matches are weighted 2x more than category matches, this helps title matches consistently appear before category matches.

How did you verify your code works?

followed the reproduction steps mentioned in #10102 and verified options with "session" in their title appear consistently at the top of the results and above options with only category "session"

screen recording of the fix below:

https://github.com/user-attachments/assets/dded3462-94ef-4b89-a22c-1582aec7d50e

fixes #10102

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10106 **State:** closed **Merged:** Yes --- ### What does this PR do? Fix TUI's command search filtering to maintain proper result prioritization throughout typing by adding weights to fuzzy search scoring where title matches are weighted 2x more than category matches, this helps title matches consistently appear before category matches. ### How did you verify your code works? followed the reproduction steps mentioned in #10102 and verified options with "session" in their title appear consistently at the top of the results and above options with only category "session" screen recording of the fix below: https://github.com/user-attachments/assets/dded3462-94ef-4b89-a22c-1582aec7d50e fixes #10102
yindo added the pull-request label 2026-02-16 18:18:12 -05:00
yindo closed this issue 2026-02-16 18:18:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13337