From 383306e17ea8bf88c8f7bc24a4873246af3cc983 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Tue, 1 Jul 2025 15:51:43 -0700 Subject: Improve slashCommand autoCompletion logic (#2776) --- packages/cli/src/ui/hooks/useCompletion.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/cli/src/ui/hooks') diff --git a/packages/cli/src/ui/hooks/useCompletion.ts b/packages/cli/src/ui/hooks/useCompletion.ts index 8e18e32f..27a1c708 100644 --- a/packages/cli/src/ui/hooks/useCompletion.ts +++ b/packages/cli/src/ui/hooks/useCompletion.ts @@ -135,7 +135,8 @@ export function useCompletion( (cmd) => cmd.name === commandName || cmd.altName === commandName, ); - if (command && command.completion) { + // Continue to show command help until user types past command name. + if (command && command.completion && parts.length > 1) { const fetchAndSetSuggestions = async () => { setIsLoadingSuggestions(true); if (command.completion) { -- cgit v1.2.3