mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-09 17:40:44 -07:00
feat(cli): add --delete flag to /exit command for session deletion (#19332)
Co-authored-by: David Pierce <davidapierce@google.com>
This commit is contained in:
@@ -557,6 +557,18 @@ export const useSlashCommandProcessor = (
|
||||
return { type: 'handled' };
|
||||
}
|
||||
case 'quit':
|
||||
if (result.deleteSession) {
|
||||
try {
|
||||
const chatRecordingService = config
|
||||
?.getGeminiClient()
|
||||
?.getChatRecordingService();
|
||||
if (chatRecordingService) {
|
||||
await chatRecordingService.deleteCurrentSessionAsync();
|
||||
}
|
||||
} catch {
|
||||
// Don't let deletion errors prevent exit.
|
||||
}
|
||||
}
|
||||
actions.quit(result.messages);
|
||||
return { type: 'handled' };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user