Skip to content

Conversation

@ariane-emory
Copy link
Owner

DUMMY PR, IGNORE.

  • DialogSelect: Add prefix-first alphabetical sorting to filtered results
  • Remove commented-out sort in grouped memo since sorting is now done in filtered()
  • DialogModel: Add sortWithPrefixFirst helper for custom filtering logic
  • Preserve 'Free first' ordering within filtered groups
  • Ensures consistent alphabetical ordering in /theme and /models menus

- Add sortKey prop to useFilteredList for alphabetical sorting
- Prefix matches are prioritized and sorted alphabetically
- Non-prefix matches follow, also sorted alphabetically
- Apply sortKey to slash command autocomplete in prompt-input
…omplete

Replace fuzzysort-based autocomplete with deterministic alphabetical sorting that:
- Tier 1: Commands starting with filter (prefix matches)
- Tier 2: Commands containing filter in name (substring matches)
- Tier 3: Commands matching only in description/aliases

Each tier is sorted alphabetically, with up to 100 results total.
Fixes unpredictable ordering where '/wrong-branch' appeared before '/auto-integrate-branches'.
Resolved conflict in autocomplete.tsx by keeping dev branch's fuzzysort implementation with frecency scoring over the simpler tieredMatch approach.
…ordering

The tieredMatch implementation was accidentally reverted during a dev merge.
This restores the original fix that ensures:
- Tier 1: Commands starting with filter (prefix matches)
- Tier 2: Commands containing filter in name (substring matches)
- Tier 3: Commands matching only in description/aliases

Each tier is sorted alphabetically for predictable ordering.
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@ariane-emory ariane-emory force-pushed the fix/modal-menus-filtered-order branch 2 times, most recently from f64b9ce to 646a87b Compare January 20, 2026 06:19
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.

2 participants