summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.ts
diff options
context:
space:
mode:
authorAllen Hutchison <[email protected]>2025-05-06 14:48:49 -0700
committerGitHub <[email protected]>2025-05-06 14:48:49 -0700
commitadeda6a5b35faddacc4c4b251fbc8f809a4a2758 (patch)
tree45a90e9bb45ea1cb2d07b99aea5b2725acdb88b9 /packages/cli/src/ui/hooks/useGeminiStream.ts
parente26c436d5cfd44948064fcd6be4a46a9ef1a7655 (diff)
Refactor: Memoize hook callbacks, update dependencies, and fix lint errors (#268)
Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts
index 1761563b..75114f77 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.ts
+++ b/packages/cli/src/ui/hooks/useGeminiStream.ts
@@ -101,7 +101,7 @@ export const useGeminiStream = (
);
}
}
- }, [config.getApiKey(), config.getModel()]);
+ }, [config]);
// Input Handling Effect (remains the same)
useInput((input, key) => {
@@ -532,10 +532,13 @@ export const useGeminiStream = (
getNextMessageId,
updateGeminiMessage,
handleSlashCommand,
+ handleShellCommand,
// handleAtCommand is implicitly included via its direct call
setDebugMessage, // Added dependency for handleAtCommand & passthrough
setStreamingState, // Added dependency for handlePassthroughCommand
updateAndAddGeminiMessageContent,
+ setShowHelp,
+ toolRegistry,
],
);