diff options
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 11e1247f..916af3e7 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -181,10 +181,11 @@ export const useSlashCommandProcessor = ( }, { name: 'clear', - description: 'clear the screen', - action: (_mainCommand, _subCommand, _args) => { - onDebugMessage('Clearing terminal.'); + description: 'clear the screen and conversation history', + action: async (_mainCommand, _subCommand, _args) => { + onDebugMessage('Clearing terminal and resetting chat.'); clearItems(); + await config?.getGeminiClient()?.resetChat(); console.clear(); refreshStatic(); }, |
