Skip to content

Conversation

@ariane-emory
Copy link
Owner

DUMMY PR, IGNORE.

- 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

Hey! Your PR title Fix/autocompletion filtered order doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@ariane-emory ariane-emory force-pushed the fix/autocompletion-filtered-order branch from dbc48f7 to d6094c4 Compare January 9, 2026 04:57
@ariane-emory ariane-emory force-pushed the fix/autocompletion-filtered-order branch 2 times, most recently from 1e8dd2d to ec9061d Compare January 10, 2026 22:57
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