Q55: the operator can stop in-flight runs; pause stops them too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 09:59:03 -04:00
1 parent e809cfefea
commit 9e1f8da11c
18 files changed
+259 -17

No files matched your search

+2
View File
@@ -1,4 +1,5 @@
import { spawn } from "node:child_process";
import { currentRunSignal } from "./run-control";
const COMMAND_TIMEOUT_MS = 120_000;
const KEEP_BYTES = 8_000;
@@ -51,6 +52,7 @@ export function runCommand(workspaceRoot: string, command: string): Promise<stri
killedByTimeout = true;
child.kill();
}, COMMAND_TIMEOUT_MS);
currentRunSignal()?.addEventListener("abort", () => child.kill(), { once: true });
const collect = (chunk: Buffer): void => output.push(chunk);
child.stdout.on("data", collect);
child.stderr.on("data", collect);