mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00:00
fix: increase delay for summary_and_quit to show results before exit
This commit is contained in:
@@ -432,8 +432,10 @@ export const useSlashCommandProcessor = (
|
|||||||
// Generate summary and then quit
|
// Generate summary and then quit
|
||||||
handleSlashCommand('/chat summary')
|
handleSlashCommand('/chat summary')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// Wait for summary to complete, then quit
|
// Wait for user to see the summary result
|
||||||
|
setTimeout(() => {
|
||||||
handleSlashCommand('/quit');
|
handleSlashCommand('/quit');
|
||||||
|
}, 1200);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// If summary fails, still quit but show error
|
// If summary fails, still quit but show error
|
||||||
@@ -448,7 +450,10 @@ export const useSlashCommandProcessor = (
|
|||||||
},
|
},
|
||||||
Date.now(),
|
Date.now(),
|
||||||
);
|
);
|
||||||
|
// Give user time to see the error message
|
||||||
|
setTimeout(() => {
|
||||||
handleSlashCommand('/quit');
|
handleSlashCommand('/quit');
|
||||||
|
}, 1000);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Just quit immediately - trigger the actual quit action
|
// Just quit immediately - trigger the actual quit action
|
||||||
@@ -483,7 +488,7 @@ export const useSlashCommandProcessor = (
|
|||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await runExitCleanup();
|
await runExitCleanup();
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}, 100);
|
}, 1000);
|
||||||
return { type: 'handled' };
|
return { type: 'handled' };
|
||||||
|
|
||||||
case 'submit_prompt':
|
case 'submit_prompt':
|
||||||
|
|||||||
Reference in New Issue
Block a user