From 3fd59899b107d142341eee3cbf34ce86d13a023c Mon Sep 17 00:00:00 2001 From: lyon Date: Wed, 17 Jun 2026 21:30:44 +0800 Subject: [PATCH] fix: force fresh web probe sessions --- scripts/web-live-dom-probe.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/web-live-dom-probe.mjs b/scripts/web-live-dom-probe.mjs index c27d5065..e3330c9f 100644 --- a/scripts/web-live-dom-probe.mjs +++ b/scripts/web-live-dom-probe.mjs @@ -1,4 +1,5 @@ #!/usr/bin/env node +// SPEC: PJ2026-010401 Web工作台 - Workbench 可见性与性能探针 import { createHash } from "node:crypto"; import { spawn } from "node:child_process"; import fs from "node:fs"; @@ -608,10 +609,6 @@ async function createFreshSession(page, args, actions) { } const shellReady = await waitForSessionShellReady(page, args, actions); const before = await collectSessionState(page); - if (before.messageCount === 0 && before.command?.inputDisabled === false) { - actions.push({ action: "fresh-session", selector, reusedExistingEmptySession: true, shellReady, before }); - return true; - } await locator.click(); const timeoutMs = Math.min(args.timeoutMs, 30000); const settled = await page.waitForFunction((initial) => {