From ec5e9d1025fee66938153140b5f37e35b50c67ed Mon Sep 17 00:00:00 2001 From: Lee Won Jun Date: Wed, 16 Jul 2025 08:45:10 +0900 Subject: Improve altName completion behavior in slash commands (#4227) Co-authored-by: Jacob Richman --- packages/cli/src/ui/hooks/useCompletion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/cli/src/ui/hooks/useCompletion.ts') diff --git a/packages/cli/src/ui/hooks/useCompletion.ts b/packages/cli/src/ui/hooks/useCompletion.ts index 8b3f6991..d3de5c6b 100644 --- a/packages/cli/src/ui/hooks/useCompletion.ts +++ b/packages/cli/src/ui/hooks/useCompletion.ts @@ -221,7 +221,7 @@ export function useCompletion( // enter should submit immediately. if (potentialSuggestions.length > 0 && !hasTrailingSpace) { const perfectMatch = potentialSuggestions.find( - (s) => s.name === partial, + (s) => s.name === partial || s.altName === partial, ); if (perfectMatch && !perfectMatch.subCommands) { potentialSuggestions = []; -- cgit v1.2.3