fix(process): await cleanup on CLI and MCP cancellation

Propagate CLI interrupts to capture and interrupt post-exit settlement
without cancelling owned-resource cleanup or discarding prior observations.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
This commit is contained in:
Ysopwnable
2026-10-09 11:26:41 +00:00
committed by GitHub
parent b189c3ceb1
commit f6fe575094
8 changed files with 327 additions and 18 deletions
+1
View File
@@ -370,6 +370,7 @@ const completeCapture = async (options: {
scenario.settle_ms,
options.recordEvent,
options.hostPlatform,
options.signal,
);
} catch (cause: unknown) {
options.observationBuffer.settlement = {