From 06747cffc0b38309cd9f2996dcbebc774b53706e Mon Sep 17 00:00:00 2001 From: zizi Date: Thu, 11 Jun 2026 02:35:58 +0000 Subject: [PATCH] =?UTF-8?q?fix(qa):=20=E6=8E=A2=E9=92=88=20evaluate=20?= =?UTF-8?q?=E5=8F=96=E5=80=BC=E5=B1=82=E7=BA=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- .../orchestrator/probe_bridge_channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py b/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py index 9f1a2fd6..109c056c 100644 --- a/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py +++ b/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py @@ -154,7 +154,9 @@ def main() -> int: "expression": "location.href + ' || ' + document.body.innerText.replace(/\\n+/g,' | ').slice(0,200)", "returnByValue": True}) print("\n==== 页面终态 ====") - print(str(r.get("result", {}).get("result", {}).get("value", ""))[:300]) + # call() 返回 CDP 应答的 result 字段:Runtime.evaluate 的值在 result.result.value + val = r.get("result", {}).get("value", "") if "result" in r else r + print(str(val)[:300]) except Exception as e: # noqa: BLE001 - 取证收尾,异常只记录 print(f"页面终态读取失败:{e}") return 0