mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
feat: clear should also clear chat history (#1008)
This commit is contained in:
parent
dd679a6cdb
commit
6af7a5c589
4 changed files with 58 additions and 3 deletions
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue