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:
@@ -47,6 +47,7 @@ export const isProcessCliFailure = (
|
||||
export const captureProcessScenarioFile = async (
|
||||
path: string,
|
||||
environment: Readonly<Record<string, string | undefined>> = process.env,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
try {
|
||||
const input = await readJson(path);
|
||||
@@ -60,7 +61,7 @@ export const captureProcessScenarioFile = async (
|
||||
);
|
||||
const captured = await captureProcessScenario(
|
||||
parsed.data,
|
||||
undefined,
|
||||
signal,
|
||||
process.platform,
|
||||
environment,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user