From 980eb598f4b30bff55e467b09086afdb05504344 Mon Sep 17 00:00:00 2001 From: Keith Guerin Date: Fri, 27 Feb 2026 14:38:31 -0800 Subject: [PATCH] fix(ui): restore isSlashCommand import and narrow space-suppression logic --- packages/cli/src/ui/hooks/useCommandCompletion.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/hooks/useCommandCompletion.tsx b/packages/cli/src/ui/hooks/useCommandCompletion.tsx index 967266e835..782762aa59 100644 --- a/packages/cli/src/ui/hooks/useCommandCompletion.tsx +++ b/packages/cli/src/ui/hooks/useCommandCompletion.tsx @@ -9,8 +9,8 @@ import type { Suggestion } from '../components/SuggestionsDisplay.js'; import type { CommandContext, SlashCommand } from '../commands/types.js'; import type { TextBuffer } from '../components/shared/text-buffer.js'; import { logicalPosToOffset } from '../components/shared/text-buffer.js'; -import { isSlashCommand } from '../utils/commandUtils.js'; import { toCodePoints } from '../utils/textUtils.js'; +import { isSlashCommand } from '../utils/commandUtils.js'; import { useAtCompletion } from './useAtCompletion.js'; import { useSlashCompletion } from './useSlashCompletion.js'; import { useShellCompletion } from './useShellCompletion.js'; @@ -37,7 +37,7 @@ export interface UseCommandCompletionReturn { showSuggestions: boolean; isLoadingSuggestions: boolean; isPerfectMatch: boolean; - setActiveSuggestionIndex: React.Dispatch>; + setActiveSuggestionIndex: (index: number) => void; resetCompletionState: () => void; navigateUp: () => void; navigateDown: () => void;