Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
024c90a to
a64ea57
Compare
|
Codex review: blocked before merge. What this changesThis PR adds circular-safe Google Meet status serialization, a circular-caption regression test, and a required wrapper inventory entry. Example: A caption region contains Alex saying “Hello there” and a circular __soy back-reference.
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep open for the assigned maintainer’s disposition: main already excludes caption DOM nodes, while this PR retains defensive serialization and regression coverage; GitHub reports a conflict. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Google Meet adapter generates browser scripts that inspect call controls and captions, then return JSON health data to the shared meeting runtime. flowchart LR
A[Meeting runtime] --> B[Google Meet adapter]
B --> C[Browser status script]
D[Meet controls and captions] --> C
C --> E[Caption projection]
E --> F[Status serialization]
F --> A
Technical reviewBest possible solution: Preserve the canonical caption projection and retain focused circular-DOM regression coverage, adding generic serialization protection only if the assigned owner wants it. Do we have a high-confidence way to reproduce the issue? The historical failure has browser traces and independent release reports, but current-main source excludes the offending DOM node before serialization; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch handles the historical circular structure, but the existing captionLine projection already fixes its producer, making a regression-only contribution the smaller current solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9211ea8272d0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +27, Tests +91, Other +1. Total +119 across 3 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (13 earlier review cycles; latest 8 shown)
Reviewed November 12, 2026, 6:02 AM ET / 11:02 UTC (Revision 14). |
a64ea57 to
97a0796
Compare
|
@clawsweeper re-review The PR body now carries the strongest after-fix evidence this environment can produce: the shipped |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
97a0796 to
08584b3
Compare
6451659 to
0d0b8c7
Compare
…enclaw#140455) The in-call status script serialized recentTranscript entries that still held live Meet DOM nodes, and the page's own objects carry circular back-references (__soy), so JSON.stringify threw "Converting circular structure to JSON": page.evaluate failed, inCall (and every audio-bridge decision behind it) stayed false, and recover-tab failed the same way. Serialize through a circular-safe helper that drops DOM nodes, and map caption entries to their text fields before they leave the page. Covers Bug 1 only; the audio-routing settings panel issue (Bug 2/3) is untouched.
0d0b8c7 to
caee3db
Compare
437fbe7 to
f672c09
Compare
f672c09 to
2baa287
Compare
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
What Problem This Solves
Part of #140455 (Bug 1 only). In
@openclaw/google-meet, after the agent joins aMeet call it stays muted because the injected in-call status script can never
report health.
Root cause:
meetStatusScript()(extensions/google-meet/src/transports/google-meet-page-scripts.ts)returned
recentTranscriptentries that still carried live Meet DOM nodes(
node: region). Meet's own page objects hold circular__soyback-references,so the final
JSON.stringify(...)inside the injected script threwTypeError: Converting circular structure to JSON. That fails the wholepage.evaluate, which surfaces as a 500 from the browser transport:inCallnever gets reported, the audio bridge is never built, and
recover-tabfailsthrough the same script.
Fix, both layers:
{ at, speaker, text }beforethey leave the page (same shape the shared meeting-bot status source already
uses in
src/meeting-bot/status-call-source.ts), so no DOM node can enter thepayload.
stringifyMeetStatusResult()helper that drops DOM nodes (nodeTypeis anumber) and elides revisited objects, embedded verbatim into the in-page
script so the unit tests cover exactly the shipped code.
Only the
meetStatusScript()call site needed this — the otherJSON.stringifyuses in the same file (
meetTranscriptScript,meetLeaveScript) serializescalars or already-mapped transcript lines and were verified clean.
Scope note: Bug 2/3 from #140455 (audio routing settings panel scraping) is not
covered by this PR.
Evidence
New regression test
extensions/google-meet/src/transports/google-meet-page-scripts.test.ts(Windows-friendly,
node:vmharness):TypeError: Converting circular structure to JSON—property '__soy' -> object 'element' closes the circleinCall === trueandrecentTranscript === [{ at, speaker, text }]with nonodekey.node:vmagainst a circular caption region (__soyback-reference) - no throw,inCall/captioningreported, plain{ at, speaker, text }rows, no DOM node in the payload.Focused run:
vitest.extensions.config.tson the new file +google-meet-platform-adapter.test.ts→ 7/7 passed.Test cost at this head (
2baa28783b9e, measured in worktreeD:/code/issue/wt-oc-140455):pnpm test extensions/google-meet/src/transports/google-meet-page-scripts.test.ts --maxWorkers=1→ 4s wall (Vitest 2.34s; 1 file / 1 test passed; exit 0) — seconds-scale against the extensions-config shard's CI budget (same head:
checks-node-changed-extensions-config-1198s,-2130s,checks-node-changed140s).Whole google-meet shard: 29 test files, 28 passed.
index.test.tshas 16 failures that are identical pre-fix and post-fix (verified by re-running the suite on the stashed tree); they are pre-existing on this branch/machine (Windows EPERM temp-dir cleanup + audio-bridge mocks), not caused by this change.Lint/format:
oxlintandoxfmt --checkclean on both changed files.Bundled-shape probe: the generated in-page script (esbuild bundle) parses and embeds the helper source intact.
Unverified boundary: no live Google Meet call was exercised (no Chrome/Meet in
this environment); the fix is verified at the script/serialization level only.
Parent verification
Real-Chromium before/after evidence — openclaw PR #146076 (issue #140455)
Claim under evidence: the shipped in-call Google Meet status script (
meetStatusScript,extensions/google-meet/src/transports/google-meet-page-scripts.ts) must return its statuspayload even when caption rows carry live DOM nodes whose Meet-style
__soyobjectback-references the node (circular structure). Before the fix the whole in-page
page.evaluatethrowsTypeError: Converting circular structure to JSON, soinCall, thecaption buffer and every audio-bridge decision behind them never reach the caller (
inCallstays false,
recover-tabfails the same way).What is real vs synthetic (honest declaration)
Real (executed, not mocked):
(
C:\Users\Administrator\AppData\Local\ms-playwright\chromium-1234\chrome-win64\chrome.exe),script executed via a real
page.evaluateround-trip over CDP.(
meetStatusScript(...)) — never hand-copied. The module's sha256 is printed per run(before
4436f19d…, afterdf00d041…) so the exercised revision is auditable.evaluateViaPlaywright()(
extensions/browser/src/browser/pw-tools-core.interactions.actions.ts:388-420):page.evaluate(new Function("args", …eval("(" + fnSource + ")")…), {fnSource, timeoutMs}).__soyback-reference is attached to a real DOM node in the real browser(
region.__soy = { node: region, … }), exactly the shape reported for Meet'sClosure/soy template objects. The harness proves the structure is genuinely circular:
JSON.stringify(region)is fine before attaching__soyand throwsTypeError: Converting circular structure to JSON … property '__soy' -> … 'node' closes the circleafter — before the status script even runs.
https://meet.google.com/ocproof-140455(request interception +page.setContent()), so the shipped script sees a real https Meet origin, a secure contextand
crypto.randomUUID(used by the caption buffer) exactly as in production.Synthetic / NOT proven here:
no WebRTC, no real participants. The caption line ("Dana Whitfield: the quarterly numbers
look strong, ship it") is fabricated.
captureCaptions=true, allowMicrophone=false(observe-only),autoJoin=false,readOnly=false,captionSessionId="ocproof-140455".call". It proves the failure mode and the fix at the DOM/serialization layer inside a
real Chromium running the real shipped script, one layer below a live call.
about:blankis not a secure context inChromium, so
crypto.randomUUIDis absent there; the harness therefore falls back to theintercepted
https://meet.google.com/**document and then callspage.setContent()on it.Exact commands (run from worktree
D:/code/wt-oc-140455)Worktree afterwards:
git status --porcelainempty, module sha256 back todf00d041…(verified, see AFTER log header and the command transcript below).
Result delta
HEAD~1)HEAD)4436f19df3f7637f427905985a1dbf57d1b4a3cab8af924d55aa0f2e34258113df00d04146728d710b87cebfb76742a05589dd40abeb50bba0c481c3c492fbb7stringifyResult/WeakSetguard / transcript key mappingpage.evaluate(production wrapper)TypeError: Converting circular structure to JSON … property '__soy' … 'node' closes the circleatJSON.stringify(in-page line 495)inCalltruecaptioning: true,transcriptLines: 1,lastCaptionSpeaker: "Dana Whitfield",lastCaptionText: "the quarterly numbers look strong, ship it"recentTranscript[{"at":…,"speaker":"Dana Whitfield","text":"the quarterly numbers look strong, ship it"}]— keys exactlyat/speaker/text, no DOM node, no[Circular]Full raw terminal output — BEFORE
Full raw terminal output — AFTER
Artifacts (all outside the repo; nothing was committed or pushed)
C:\Users\Administrator\AppData\Local\Temp\ocproof-140455-browser.mjsC:\Users\Administrator\AppData\Local\Temp\ocproof-140455.before.txt,C:\Users\Administrator\AppData\Local\Temp\ocproof-140455.after.txtD:/code/wt-oc-140455left clean at97a0796469ad807725516232f94dba01577a8236.Re-ran by the author
Both legs re-run by hand on this branch (
97a0796469ad); decisive lines:Boundary, stated plainly: this proves the fix at the real-browser / real-shipped-script layer (real Chromium via Playwright, real
page.evaluateover CDP, real https Meet origin, script source imported from the shipped module and hashed). The page is a synthetic Meet-like DOM — not a live caption-active Meet call, which is not available to me in this environment (no Meet account, no live meeting). If a maintainer wants the live-call observation, the repo's own e2e lanes or Mantis can produce it; the failure mode fixed here is fully reproduced one layer below that.