fix: ctrl-c exit + agent dump

This commit is contained in:
cpacker
2025-10-25 23:37:41 -07:00
parent 2a93f9ab55
commit 83aeaff3fd
3 changed files with 5 additions and 3 deletions

View File

@@ -86,9 +86,8 @@ export function Input({
useInput((input, key) => {
if (input === "c" && key.ctrl) {
if (ctrlCPressed) {
// Second CTRL-C - call onExit callback then exit application
// Second CTRL-C - call onExit callback which handles stats and exit
if (onExit) onExit();
process.exit(0);
} else {
// First CTRL-C - start 1-second timer
setCtrlCPressed(true);