Skip to content

tui: boost favorites and recents when filtering model dialog#23161

Closed
kitlangton wants to merge 2 commits intodevfrom
tui-favorite-sort-on-query
Closed

tui: boost favorites and recents when filtering model dialog#23161
kitlangton wants to merge 2 commits intodevfrom
tui-favorite-sort-on-query

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

When typing in the model selection dialog, favorites and recents previously lost all positional priority — they were demoted into the flat provider pool and ranked purely by fuzzysort score on title / category. A favorite would only rank high if its name happened to fuzzy-match well.

This change partitions the fuzzysort matches so favorites float to the top, recents come next, then everything else. Each group preserves fuzzysort's relative order, and the threshold still applies (non-matching favorites are not force-shown).

Notes

  • Only affects the typed-query path in dialog-model.tsx. No-query behavior is unchanged.
  • Popular providers still tail the list unchanged.
  • Drafting because the behavior may need a feel test before landing.

When the user types a query in the model selection dialog, favorites
and recents previously lost all positional priority and were ranked
purely by fuzzysort score on title/category. Now matching favorites
float to the top, followed by matching recents, then everything else,
each group preserving fuzzysort order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant