summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.ts
diff options
context:
space:
mode:
authorJaana Dogan <[email protected]>2025-04-21 12:59:31 -0700
committerGitHub <[email protected]>2025-04-21 12:59:31 -0700
commitbaf39042c8631d53dfac4e57148404749cde14b3 (patch)
tree49fcfe890714b80d0f8bc5cace6869128ea25687 /packages/cli/src/ui/hooks/useGeminiStream.ts
parent2571e071751681338518c2bf65f25ad32b2f71f4 (diff)
Remove duplicate CLI tools module, remove the global tool registry (#89)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts
index 2728c394..ffdd9967 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.ts
+++ b/packages/cli/src/ui/hooks/useGeminiStream.ts
@@ -35,7 +35,6 @@ import {
IndividualToolCallDisplay,
ToolCallStatus,
} from '../types.js';
-import { toolRegistry } from '../../tools/tool-registry.js';
const addHistoryItem = (
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
@@ -53,6 +52,7 @@ export const useGeminiStream = (
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
config: Config,
) => {
+ const toolRegistry = config.getToolRegistry();
const [streamingState, setStreamingState] = useState<StreamingState>(
StreamingState.Idle,
);