diff options
| author | Lee Won Jun <[email protected]> | 2025-07-16 08:45:10 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-15 23:45:10 +0000 |
| commit | ec5e9d1025fee66938153140b5f37e35b50c67ed (patch) | |
| tree | b3e50ec98036388dfee14fa20407988c2c60eae9 /packages/cli/src/ui/hooks/useCompletion.ts | |
| parent | 615748657aaf5c0b5d19c7ff046346a29275ed81 (diff) | |
Improve altName completion behavior in slash commands (#4227)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/hooks/useCompletion.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useCompletion.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 = []; |
