summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.ts
diff options
context:
space:
mode:
authorSeth Troisi <[email protected]>2025-05-05 17:52:29 +0000
committerGitHub <[email protected]>2025-05-05 10:52:29 -0700
commita0bed3e7169eb6ce89b283b4c1dc0107e3851572 (patch)
treed279f731abad62cafe8952b1abe144c6102194bd /packages/cli/src/ui/hooks/useGeminiStream.ts
parent74f8f5eaa91b817acd687c8f8ff37b39a6a57265 (diff)
Have /clear clear <Static> content by remounting (#250)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts
index bd2b617c..52675145 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.ts
+++ b/packages/cli/src/ui/hooks/useGeminiStream.ts
@@ -48,6 +48,7 @@ const addHistoryItem = (
// Hook now accepts apiKey and model
export const useGeminiStream = (
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
+ refreshStatic: () => void,
config: Config,
openThemeDialog: () => void,
) => {
@@ -73,6 +74,7 @@ export const useGeminiStream = (
// Instantiate command processors
const { handleSlashCommand, slashCommands } = useSlashCommandProcessor(
setHistory,
+ refreshStatic,
setDebugMessage,
getNextMessageId,
openThemeDialog,