fix(web-probe): isolate performance capture cdp timeouts

This commit is contained in:
Codex
2026-07-02 21:14:05 +00:00
parent 02feeac921
commit 99ed2e9502
4 changed files with 101 additions and 12 deletions
@@ -31,6 +31,7 @@ export function nodeWebObserveRunnerControlSource(): string {
} finally {
stopCommandSampler();
activeCommandId = null;
activeCommandType = null;
await writeHeartbeat({ status: terminalStatus });
}
}
@@ -79,7 +80,8 @@ function startCommandActiveSampler(command) {
async function processCommand(command) {
commandSeq += 1;
activeCommandId = command.id;
await writeHeartbeat({ status: "running", activeCommandId });
activeCommandType = command.type;
await writeHeartbeat({ status: "running", activeCommandId, activeCommandType });
await appendJsonl(files.control, controlRecord(command, "started", commandInputSummary(command)));
switch (command.type) {
case "login": return authenticate(context);