fix: surface web probe target readiness blockers

This commit is contained in:
Codex
2026-07-02 07:37:54 +00:00
parent acb60dc60d
commit 457cbd1e38
5 changed files with 146 additions and 7 deletions
@@ -111,7 +111,13 @@ try {
page = await context.newPage();
attachPassiveListeners(page, "control", pageId);
auth = await runControlCommand({ id: "startup-login", type: "login", createdAt: startedAt, source: "startup" }, async () => authenticate(context));
await runControlCommand({ id: "startup-goto", type: "goto", path: targetPath, createdAt: new Date().toISOString(), source: "startup" }, async () => gotoTarget(targetPath));
const startupGoto = await runControlCommand({ id: "startup-goto", type: "goto", path: targetPath, createdAt: new Date().toISOString(), source: "startup" }, async () => gotoTarget(targetPath));
if (startupGoto?.degraded === true) {
const error = new Error("startup target page is not ready: " + (startupGoto.degradedReason || "target-not-ready"));
error.details = startupGoto;
error.navigationReadiness = startupGoto.readiness || null;
throw error;
}
observerPage = await context.newPage();
attachPassiveListeners(observerPage, "observer", observerPageId);
await runControlCommand({ id: "startup-observer-goto", type: "observerGoto", path: targetPath, createdAt: new Date().toISOString(), source: "startup" }, async () => {