summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
authorchristine betts <[email protected]>2025-08-08 15:38:30 +0000
committerGitHub <[email protected]>2025-08-08 15:38:30 +0000
commit3af4913ef3f00de71744de551a568aa713a3beec (patch)
treeca71aae771662435a4c01400a701b48a4c5dbcf3 /packages/cli/src/ui/hooks/slashCommandProcessor.ts
parent5ec4ea9b4d425269c9e9052503ad85b5caaa976e (diff)
[ide-mode] Close all open diffs when the CLI gets closed (#5792)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index cfe4b385..9f4bbf90 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -18,6 +18,7 @@ import {
ToolConfirmationOutcome,
} from '@google/gemini-cli-core';
import { useSessionStats } from '../contexts/SessionContext.js';
+import { runExitCleanup } from '../../utils/cleanup.js';
import {
Message,
MessageType,
@@ -370,7 +371,8 @@ export const useSlashCommandProcessor = (
}
case 'quit':
setQuittingMessages(result.messages);
- setTimeout(() => {
+ setTimeout(async () => {
+ await runExitCleanup();
process.exit(0);
}, 100);
return { type: 'handled' };