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/slashCommandProcessor.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts') 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>, + refreshStatic: () => void, setDebugMessage: React.Dispatch>, 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(); }, }, { -- cgit v1.2.3