From de3a7da7eaf39502ab3b372ab0feec3cba96498d Mon Sep 17 00:00:00 2001 From: Keith Guerin Date: Fri, 27 Feb 2026 14:58:03 -0800 Subject: [PATCH] fix(ui): restore React import and Dispatch type to resolve CI lint failure --- packages/cli/src/ui/hooks/useCommandCompletion.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/ui/hooks/useCommandCompletion.tsx b/packages/cli/src/ui/hooks/useCommandCompletion.tsx index 782762aa59..1577af422b 100644 --- a/packages/cli/src/ui/hooks/useCommandCompletion.tsx +++ b/packages/cli/src/ui/hooks/useCommandCompletion.tsx @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ +import type React from 'react'; import { useCallback, useMemo, useEffect } from 'react'; import type { Suggestion } from '../components/SuggestionsDisplay.js'; import type { CommandContext, SlashCommand } from '../commands/types.js'; @@ -37,7 +38,7 @@ export interface UseCommandCompletionReturn { showSuggestions: boolean; isLoadingSuggestions: boolean; isPerfectMatch: boolean; - setActiveSuggestionIndex: (index: number) => void; + setActiveSuggestionIndex: React.Dispatch>; resetCompletionState: () => void; navigateUp: () => void; navigateDown: () => void;