fix(vscode): align slash command selection with display order - #13188
Merged
johnnyeric merged 1 commit intoAug 21, 2026
Conversation
LCZcn96
marked this pull request as ready for review
August 18, 2026 01:17
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
The fix aligns Reviewed by kimi-k3 · Input: 160.5K · Output: 5.2K · Cached: 344.7K Review guidance: REVIEW.md from base branch |
johnnyeric
approved these changes
Aug 21, 2026
Contributor
|
Thanks for the contribution! merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Issue
Fixes #13187
Context
The VS Code slash-command picker can show one result as highlighted while Enter or Tab applies another result when Actions and server Commands both match the query. This is especially visible when a built-in reload action and a server refresh command share the same hint.
Implementation
The hook now keeps relevance sorting within each command type, then exposes the same Actions-first, Commands-second order that
PromptInputrenders. Keyboard indexes therefore address the visible list instead of the pre-grouped relevance list.The regression coverage verifies Enter, Tab, and ArrowDown followed by Enter for a matching action and server command.
Screenshots / Video
Not applicable; this changes keyboard selection behavior and does not change the visual design.
How to Test
Manual/local verification
bun test tests/unit/use-slash-command.test.ts tests/unit/use-slash-command-sorting.test.ts— 27 passed, 0 failed.packages/kilo-vscode:bun run typecheck— passed.packages/kilo-vscode:bun run lint— passed.packages/kilo-vscode:bun run knip— passed.packages/kilo-vscode:bun run bundle— passed.Reviewer test steps
refreshavailable in a workspace while the built-inreloadaction is available./refresh.reloadaction in Actions and therefreshcommand in Commands.Blocked checks and substitute verification
bun run test:unitwas attempted twice on Windows and did not exit after more than five minutes without reporting a failure. The affected test files and their sorting companion completed successfully with 27 passing tests.@kilocode/kilo-jetbrains:typecheck, but its local fixed CLI cache remained locked duringgenerateOpenApiSpec. VS Code typecheck and the other root package typechecks passed; the branch was pushed after this unrelated local hook blocker with--no-verify.Checklist