Repository navigation
fix: submit an exact slash command on the first Enter - #1446
RealBhupesh wants to merge 2 commits into
Conversation
Enter treated a single exact command match as a completion selection, so it closed the menu and left the command unsent until a second Enter. Fixes Nano-Collective#1431
No changeset foundThis PR does not add a changeset, so it will not appear in the changelog or trigger a release. If the change is user-facing, add one: pnpm changesetPick a bump (patch / minor / major) and write the changelog entry in our usual voice ("Added X... Thanks to @you. Closes #123."), then commit the generated If this PR is docs-only or a chore that needs no release note, you can ignore this — or run |
nc-review: comments — 1 important, 2 nits@RealBhupesh — a few things worth a look, none blocking. The PR correctly resolves issue #1431 by extracting a small predicate 🟠 important · No changeset is included with this PR. This is a user-facing bug fix in the composer key handling of the TUI (Enter behaviour for exact slash commands changes visibly), so per the project rubric a changeset is required. The empty-changeset shape in ⚪ nit · The spec only asserts ⚪ nit ·
🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
Biome's import order check failed on the new exact-command import.
|
Thanks for this, @RealBhupesh, and sorry it sat so long. #1431 was already fixed on |
|
Thanks @will-lamerton, understood. Glad #1431 got fixed via #1502. I'll ask to be assigned first before picking up anything new. |
Fixes #1431.
When the composer text was already the only matching slash command, Enter selected that completion again, closed the menu, and did not run the command. A second Enter was required. An exact single match now falls through to submit.
Test plan
exact-command.spec.tsMade with Cursor