diff options
| author | Seth Troisi <[email protected]> | 2025-05-05 17:52:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-05 10:52:29 -0700 |
| commit | a0bed3e7169eb6ce89b283b4c1dc0107e3851572 (patch) | |
| tree | d279f731abad62cafe8952b1abe144c6102194bd /packages/cli/src/ui/hooks/slashCommandProcessor.ts | |
| parent | 74f8f5eaa91b817acd687c8f8ff37b39a6a57265 (diff) | |
Have /clear clear <Static> content by remounting (#250)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 2 |
1 files changed, 2 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(); }, }, { |
