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 <qwen-coder@alibabacloud.com>
This commit is contained in:
pomelo-nwu
2025-09-16 10:46:41 +08:00
parent b01ddf0aed
commit 4721a6f324

View File

@@ -503,7 +503,7 @@ export const useSlashCommandProcessor = (
setTimeout(async () => { setTimeout(async () => {
await runExitCleanup(); await runExitCleanup();
process.exit(0); process.exit(0);
}, 1000); }, 100);
return { type: 'handled' }; return { type: 'handled' };
case 'submit_prompt': case 'submit_prompt':