fix(cli): disable Ink's built-in exitOnCtrlC so our handler runs
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

Ink's render() defaults to exitOnCtrlC:true, which terminates the
process before useInput ever fires. Pass exitOnCtrlC:false so the
double-press logic in TuiApp (clear → hint → exit) takes effect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-16 08:51:26 -05:00
parent f0476cae92
commit 8f7e153f17

View File

@@ -177,6 +177,7 @@ program
agentName: agentName ?? undefined,
projectId,
}),
{ exitOnCtrlC: false },
);
},
);