diff --git a/src/cli/components/SlashCommandAutocomplete.tsx b/src/cli/components/SlashCommandAutocomplete.tsx index b36ca30..8290ddd 100644 --- a/src/cli/components/SlashCommandAutocomplete.tsx +++ b/src/cli/components/SlashCommandAutocomplete.tsx @@ -161,7 +161,7 @@ export function SlashCommandAutocomplete({ // Manually manage active state to include the "no matches" case useLayoutEffect(() => { - const isActive = matches.length > 0 || showNoMatches; + const isActive = matches.length > 0; onActiveChange?.(isActive); }, [matches.length, showNoMatches, onActiveChange]);