From a0bed3e7169eb6ce89b283b4c1dc0107e3851572 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Mon, 5 May 2025 17:52:29 +0000 Subject: Have /clear clear content by remounting (#250) --- packages/cli/src/ui/hooks/useGeminiStream.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts') 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>, + 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, -- cgit v1.2.3