From 4cbe3a03f4b14644c00c7835fc9c6d7284f0f6ab Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 4 Jun 2026 12:46:50 +0000 Subject: [PATCH] fix: mark idle v02 PR monitor progress --- scripts/src/hwlab-g14.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/src/hwlab-g14.ts b/scripts/src/hwlab-g14.ts index 42bfe09f..a32a68ca 100644 --- a/scripts/src/hwlab-g14.ts +++ b/scripts/src/hwlab-g14.ts @@ -4508,11 +4508,15 @@ async function waitForG14Dev(sourceCommit: string, timeoutSeconds: number): Prom async function monitorV02Cycle(options: G14MonitorOptions, cycle: number): Promise> { printEvent("v02.monitor.cycle.start", { cycle, dryRun: options.dryRun }); + printV02PrMonitorProgress({ stage: "cycle", status: "started", cycle, dryRun: options.dryRun }); const listed = listOpenG14PullRequests(); if (!isCommandSuccess(listed)) return { ok: false, cycle, phase: "list-prs", listed }; const prs = extractPullRequests(listed, V02_SOURCE_BRANCH); printEvent("v02.monitor.prs", { cycle, count: prs.length, pullRequests: prs }); - if (prs.length === 0) return { ok: true, cycle, action: "none", lane: "v02", pullRequests: [] }; + if (prs.length === 0) { + printV02PrMonitorProgress({ stage: "idle", status: "waiting", cycle, pullRequests: 0, intervalSeconds: options.intervalSeconds }); + return { ok: true, cycle, action: "none", lane: "v02", pullRequests: [] }; + } const observations: unknown[] = []; for (const pr of prs) { const startedAt = new Date().toISOString(); @@ -4631,6 +4635,7 @@ async function runMonitorWorker(options: G14MonitorOptions): Promise