feat(chat): slash autocomplete — tiered ranking, Tab completes / Enter sends / click sends unless hinted #123
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab!123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/122"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the #122 agreed design end to end.
Ranking (
acMatches)Matches are ranked into four tiers — exact name, name prefix, name substring, description/arg-hint substring — with catalog order kept as the stable within-tier order and the highlight staying at index 0. Typing
/triagenow puts/triagefirst;setup-matt-pocock-skills(description match) stays listed below it, so discovery via description survives without ever outranking a name match.Gesture model
/name— the only completion gesture.isComposerSendrules (fine-pointer bare Enter, Cmd/Ctrl+Enter everywhere, Shift/Alt newline, IME guard). It never accepts the highlight, popover open or not — the deliberate reversal of the issue #70 precedence rule, recorded in ADR-0041, which partially reverses ADR-0031's popover clause while leaving every other ADR-0031 decision standing.arg_hint; a hinted command completes to/nameand refocuses the input for the argument.Tests
The autocomplete block was rewritten to the new contract: tiered-ranking regression test reproducing the original wrong-skill-wins bug, Tab-completes-without-sending, Enter-sends-raw (partial
/cleand completed/clear), non-fine-pointer and Cmd/Ctrl+Enter guards, and click-sends vs click-completes. Full web suite green: 594 tests / 37 files, eslint, tsc, prettier, andnpm run buildall pass.Closes #122
🤖 Generated with Claude Code
https://claude.ai/code/session_017uNReXe7rnsaVvgfo4LGzr