diff options
Diffstat (limited to 'packages/cli/src/ui/hooks')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 2 | ||||
| -rw-r--r-- | packages/cli/src/ui/hooks/useGeminiStream.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 89649810..5e10a245 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -28,6 +28,7 @@ const addHistoryItem = ( export const useSlashCommandProcessor = ( setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>, + refreshStatic: () => void, setDebugMessage: React.Dispatch<React.SetStateAction<string>>, getNextMessageId: (baseTimestamp: number) => number, openThemeDialog: () => void, @@ -55,6 +56,7 @@ export const useSlashCommandProcessor = ( // This just clears the *UI* history, not the model history. setDebugMessage('Clearing terminal.'); setHistory((_) => []); + refreshStatic(); }, }, { 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, |
