Fix JD01 web observe GC and legacy cleanup

This commit is contained in:
Codex
2026-07-01 03:39:24 +00:00
parent 09edf61fcf
commit 1bc2dd3d69
9 changed files with 1448 additions and 21 deletions
+12 -1
View File
@@ -526,6 +526,7 @@ function buildObserveCommandPlan(config: WebProbeSentinelServiceConfig, scenario
"--target-path", targetPath,
"--sample-interval-ms", String(numberAt(scenario, "sampleIntervalMs")),
"--screenshot-interval-ms", String(numberAt(scenario, "screenshotIntervalMs")),
"--max-run-seconds", String(numberAt(scenario, "maxRunSeconds")),
"--command-timeout-seconds", "55",
];
const viewport = stringOrNull(scenario.viewport);
@@ -562,7 +563,17 @@ function buildObserveCommandPlan(config: WebProbeSentinelServiceConfig, scenario
argv: ["bun", "scripts/cli.ts", "web-probe", "observe", "analyze", "<observerId>"],
stdinSource: "none",
};
return [start, ...commands, analyze];
const stop: CommandPlanStep = {
phase: "observe-stop",
argv: ["bun", "scripts/cli.ts", "web-probe", "observe", "stop", "<observerId>", "--node", config.node, "--lane", config.lane, "--force", "--wait-ms", "55000", "--command-timeout-seconds", "55"],
stdinSource: "none",
};
const gc: CommandPlanStep = {
phase: "observe-gc",
argv: ["bun", "scripts/cli.ts", "web-probe", "observe", "gc", "--node", config.node, "--lane", config.lane, "--confirm", "--command-timeout-seconds", "55"],
stdinSource: "none",
};
return [start, ...commands, analyze, stop, gc];
}
function inlinePromptText(item: Record<string, unknown>): string | null {