From bfd9a1ec56994676a170117c296fcf81c60c8757 Mon Sep 17 00:00:00 2001 From: Kian Jones <11655409+kianjones9@users.noreply.github.com> Date: Tue, 10 Feb 2026 13:34:47 -0800 Subject: [PATCH] fix: bug where '/' prefixed messages without space could not be sent (#898) --- src/cli/components/SlashCommandAutocomplete.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);