From 4721a6f324cb8cec2f12dba16596686f719fad4d Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Tue, 16 Sep 2025 10:46:41 +0800 Subject: [PATCH] fix: reduce exit cleanup timeout in slash command processor Decreased the exit cleanup timeout from 1000ms to 100ms to speed up the shutdown process when using slash commands. Co-authored-by: Qwen-Coder --- packages/cli/src/ui/hooks/slashCommandProcessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 2462b02e..c00bc9bc 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -503,7 +503,7 @@ export const useSlashCommandProcessor = ( setTimeout(async () => { await runExitCleanup(); process.exit(0); - }, 1000); + }, 100); return { type: 'handled' }; case 'submit_prompt':