Skip to content

fix(google-meet): keep circular caption DOM out of in-call status - #146076

Open
Finn763 wants to merge 2 commits into
openclaw:mainfrom
Finn763:fix/oc-140455-descr
Open

Finn763 wants to merge 2 commits into
openclaw:mainfrom
Finn763:fix/oc-140455-descr

Conversation

@Finn763

@Finn763 Finn763 commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Part of #140455 (Bug 1 only). In @openclaw/google-meet, after the agent joins a
Meet 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 recentTranscript entries that still carried live Meet DOM nodes
(node: region). Meet's own page objects hold circular __soy back-references,
so the final JSON.stringify(...) inside the injected script threw
TypeError: Converting circular structure to JSON. That fails the whole
page.evaluate, which surfaces as a 500 from the browser transport: inCall
never gets reported, the audio bridge is never built, and recover-tab fails
through the same script.

Fix, both layers:

  • Root cause: caption entries are mapped to plain { at, speaker, text } before
    they 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 the
    payload.
  • Defense: the status payload is serialized through a new circular-safe
    stringifyMeetStatusResult() helper that drops DOM nodes (nodeType is a
    number) 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 other JSON.stringify
uses in the same file (meetTranscriptScript, meetLeaveScript) serialize
scalars 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:vm harness):

    • pre-fix: TypeError: Converting circular structure to JSON — property '__soy' -> object 'element' closes the circle
    • post-fix: passes; asserts inCall === true and recentTranscript === [{ at, speaker, text }] with no node key.
    • the shipped boundary is what is exercised: the generated in-page status script runs under node:vm against a circular caption region (__soy back-reference) - no throw, inCall/captioning reported, plain { at, speaker, text } rows, no DOM node in the payload.
  • Focused run: vitest.extensions.config.ts on the new file + google-meet-platform-adapter.test.ts → 7/7 passed.

  • Test cost at this head (2baa28783b9e, measured in worktree D:/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-1 198s, -2 130s, checks-node-changed 140s).

  • Whole google-meet shard: 29 test files, 28 passed. index.test.ts has 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: oxlint and oxfmt --check clean 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

$ node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.extensions.config.ts extensions/google-meet/src/transports/google-meet-page-scripts.test.ts extensions/google-meet/src/transports/google-meet-platform-adapter.test.ts --maxWorkers=1 --no-file-parallelism
 Test Files  2 passed (2)

# with google-meet-page-scripts.ts reverted to the parent commit (tests kept):
 Test Files  1 failed | 1 passed (2)

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 status
payload even when caption rows carry live DOM nodes whose Meet-style __soy object
back-references the node (circular structure). Before the fix the whole in-page
page.evaluate throws TypeError: Converting circular structure to JSON, so inCall, the
caption buffer and every audio-bridge decision behind them never reach the caller (inCall
stays false, recover-tab fails the same way).

What is real vs synthetic (honest declaration)

Real (executed, not mocked):

  • Real Chromium 151.0.7922.34, launched through Playwright 1.62.1
    (C:\Users\Administrator\AppData\Local\ms-playwright\chromium-1234\chrome-win64\chrome.exe),
    script executed via a real page.evaluate round-trip over CDP.
  • The in-page script source is generated at runtime by importing the shipped TS module
    (meetStatusScript(...)) — never hand-copied. The module's sha256 is printed per run
    (before 4436f19d…, after df00d041…) so the exercised revision is auditable.
  • The evaluation wrapper mirrors production evaluateViaPlaywright()
    (extensions/browser/src/browser/pw-tools-core.interactions.actions.ts:388-420):
    page.evaluate(new Function("args", …eval("(" + fnSource + ")")…), {fnSource, timeoutMs}).
  • The circular __soy back-reference is attached to a real DOM node in the real browser
    (region.__soy = { node: region, … }), exactly the shape reported for Meet's
    Closure/soy template objects. The harness proves the structure is genuinely circular:
    JSON.stringify(region) is fine before attaching __soy and throws
    TypeError: Converting circular structure to JSON … property '__soy' -> … 'node' closes the circle
    after — before the status script even runs.
  • The page is served at https://meet.google.com/ocproof-140455 (request interception +
    page.setContent()), so the shipped script sees a real https Meet origin, a secure context
    and crypto.randomUUID (used by the caption buffer) exactly as in production.

Synthetic / NOT proven here:

  • The page is a hand-built Meet-like DOM, not a live Google Meet call: no real backend,
    no WebRTC, no real participants. The caption line ("Dana Whitfield: the quarterly numbers
    look strong, ship it") is fabricated.
  • Params used: captureCaptions=true, allowMicrophone=false (observe-only), autoJoin=false,
    readOnly=false, captionSessionId="ocproof-140455".
  • So this does not substitute for "after-fix evidence from a real caption-active Meet
    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.
  • Environment caveat (also visible in both logs): about:blank is not a secure context in
    Chromium, so crypto.randomUUID is absent there; the harness therefore falls back to the
    intercepted https://meet.google.com/** document and then calls page.setContent() on it.

Exact commands (run from worktree D:/code/wt-oc-140455)

# AFTER (HEAD = 97a0796469ad807725516232f94dba01577a8236, fix applied)
./node_modules/.bin/tsx "$LOCALAPPDATA/Temp/ocproof-140455-browser.mjs" after 2>&1 | tee "$LOCALAPPDATA/Temp/ocproof-140455.after.txt"

# BEFORE (parent revision of the module file only; everything else at HEAD)
git checkout HEAD~1 -- extensions/google-meet/src/transports/google-meet-page-scripts.ts
./node_modules/.bin/tsx "$LOCALAPPDATA/Temp/ocproof-140455-browser.mjs" before 2>&1 | tee "$LOCALAPPDATA/Temp/ocproof-140455.before.txt"
git checkout HEAD -- extensions/google-meet/src/transports/google-meet-page-scripts.ts   # restore

Worktree afterwards: git status --porcelain empty, module sha256 back to df00d041…
(verified, see AFTER log header and the command transcript below).

Result delta

BEFORE (module at HEAD~1) AFTER (module at HEAD)
module sha256 4436f19df3f7637f427905985a1dbf57d1b4a3cab8af924d55aa0f2e34258113 df00d04146728d710b87cebfb76742a05589dd40abeb50bba0c481c3c492fbb7
script has stringifyResult / WeakSet guard / transcript key mapping false / false / false true / true / true
page.evaluate (production wrapper) REJECTED — TypeError: Converting circular structure to JSON … property '__soy' … 'node' closes the circle at JSON.stringify (in-page line 495) resolved — valid JSON status
inCall never reaches caller (no payload at all) true
caption state — captioning: 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 exactly at/speaker/text, no DOM node, no [Circular]
harness exit code 0 (assertions require the circular-JSON rejection; 6/6 pass) 0 (14/14 pass)

Full raw terminal output — BEFORE


=== ocproof-140455 BEFORE run ===
node                : v26.4.0
worktree            : D:/code/wt-oc-140455
git HEAD (module rev): 97a0796469ad807725516232f94dba01577a8236
git status dirty     : "M  extensions/google-meet/src/transports/google-meet-page-scripts.ts"
module file          : extensions/google-meet/src/transports/google-meet-page-scripts.ts
module sha256        : 4436f19df3f7637f427905985a1dbf57d1b4a3cab8af924d55aa0f2e34258113
module bytes/lines   : 27538 / 648
playwright           : 1.62.1

=== shipped in-call status script source (generated by the TS module) ===
params               : {"allowMicrophone":false,"autoJoin":false,"captionSessionId":"ocproof-140455","captureCaptions":true,"guestName":"OpenClaw Observer","readOnly":false}
fnSource bytes       : 22234
fnSource sha256      : 442d32f824f68109ef910aa384e61c9d9c0fe3282f58951cefcfc61b1f5d611f
has stringifyResult  : false
has WeakSet guard    : false
maps transcript keys : false
chromium version     : 151.0.7922.34
chromium executable  : C:\Users\Administrator\AppData\Local\ms-playwright\chromium-1234\chrome-win64\chrome.exe
about:blank probe    : {"url":"about:blank","origin":"null","title":"Meet - ocproof-140455 (synthetic)","isSecureContext":false,"randomUUID":false,"captionRegionFound":true}
page setup           : page.route(real https meet origin) + page.goto + page.setContent()
page url             : https://meet.google.com/ocproof-140455
page origin          : https://meet.google.com (secure context: true, crypto.randomUUID: true)
page title           : Meet - ocproof-140455 (synthetic)
PASS  page is a secure context with crypto.randomUUID  — {"url":"https://meet.google.com/ocproof-140455","origin":"https://meet.google.com","title":"Meet - ocproof-140455 (synthetic)","isSecureContext":true,"randomUUID":true,"captionRegionFound":true}

=== synthetic page: Meet-style __soy circular back-reference ===
JSON.stringify(caption region) before __soy : no throw, 2 chars
JSON.stringify(caption region) after  __soy : THREW: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle
own enumerable keys on caption region       : ["__soy"]
region.__soy.node === region                : true
caption rows in page                        : 1
PASS  caption region exists
PASS  __soy creates a circular structure on the caption node  — THREW: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle

=== run 1 — production path (page.evaluate + evaluateViaPlaywright wrapper) ===
RESULT: page.evaluate REJECTED
error  : PlaywrightError: page.evaluate: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle
    at JSON.stringify (<anonymous>)
    at eval (eval at anonymous (eval at evaluate (:311:30)), <anonymous>:495:15)
    at async <anonymous>:337:30

=== run 2 — same shipped source, direct invocation (no production wrapper) ===
RESULT: page.evaluate REJECTED
error  : PlaywrightError: page.evaluate: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle
    at JSON.stringify (<anonymous>)
    at eval (eval at evaluate (:311:30), <anonymous>:495:15)
    at async <anonymous>:337:30

=== assertions ===
PASS  production path rejects with the circular-JSON error  — page.evaluate: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle
    at JSON.stringify (<anonymous>)
    at eval (eval at anonymous (eval at evaluate (:311:30)), <anonymous>:495:15)
    at async <anonymous>:337:30
PASS  direct invocation throws TypeError: Converting circular structure to JSON  — page.evaluate: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle
    at JSON.stringify (<anonymous>)
    at eval (eval at evaluate (:311:30), <anonymous>:495:15)
    at async <anonymous>:337:30
PASS  no status payload came back (inCall never reaches the caller)

=== summary: BEFORE run ===
PASS  page is a secure context with crypto.randomUUID
PASS  caption region exists
PASS  __soy creates a circular structure on the caption node
PASS  production path rejects with the circular-JSON error
PASS  direct invocation throws TypeError: Converting circular structure to JSON
PASS  no status payload came back (inCall never reaches the caller)
checks: 6/6 passed
exit : 0

Full raw terminal output — AFTER


=== ocproof-140455 AFTER run ===
node                : v26.4.0
worktree            : D:/code/wt-oc-140455
git HEAD (module rev): 97a0796469ad807725516232f94dba01577a8236
git status dirty     : (clean)
module file          : extensions/google-meet/src/transports/google-meet-page-scripts.ts
module sha256        : df00d04146728d710b87cebfb76742a05589dd40abeb50bba0c481c3c492fbb7
module bytes/lines   : 28784 / 679
playwright           : 1.62.1

=== shipped in-call status script source (generated by the TS module) ===
params               : {"allowMicrophone":false,"autoJoin":false,"captionSessionId":"ocproof-140455","captureCaptions":true,"guestName":"OpenClaw Observer","readOnly":false}
fnSource bytes       : 22647
fnSource sha256      : cd85d62c15be7abc846a7257d43b98018cef120bae06f48952bc85d5f3a38248
has stringifyResult  : true
has WeakSet guard    : true
maps transcript keys : true
chromium version     : 151.0.7922.34
chromium executable  : C:\Users\Administrator\AppData\Local\ms-playwright\chromium-1234\chrome-win64\chrome.exe
about:blank probe    : {"url":"about:blank","origin":"null","title":"Meet - ocproof-140455 (synthetic)","isSecureContext":false,"randomUUID":false,"captionRegionFound":true}
page setup           : page.route(real https meet origin) + page.goto + page.setContent()
page url             : https://meet.google.com/ocproof-140455
page origin          : https://meet.google.com (secure context: true, crypto.randomUUID: true)
page title           : Meet - ocproof-140455 (synthetic)
PASS  page is a secure context with crypto.randomUUID  — {"url":"https://meet.google.com/ocproof-140455","origin":"https://meet.google.com","title":"Meet - ocproof-140455 (synthetic)","isSecureContext":true,"randomUUID":true,"captionRegionFound":true}

=== synthetic page: Meet-style __soy circular back-reference ===
JSON.stringify(caption region) before __soy : no throw, 2 chars
JSON.stringify(caption region) after  __soy : THREW: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle
own enumerable keys on caption region       : ["__soy"]
region.__soy.node === region                : true
caption rows in page                        : 1
PASS  caption region exists
PASS  __soy creates a circular structure on the caption node  — THREW: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property '__soy' -> object with constructor 'Object'
    --- property 'node' closes the circle

=== run 1 — production path (page.evaluate + evaluateViaPlaywright wrapper) ===
RESULT: page.evaluate resolved
raw    : {"clickedJoin":false,"clickedMicrophoneChoice":false,"inCall":true,"micMuted":false,"lobbyWaiting":false,"captioning":true,"captionsEnabledAttempted":true,"transcriptLines":1,"lastCaptionAt":"2026-09-12T18:17:18.775Z","lastCaptionSpeaker":"Dana Whitfield","lastCaptionText":"the quarterly numbers look strong, ship it","recentTranscript":[{"at":"2026-09-12T18:17:18.775Z","speaker":"Dana Whitfield","text":"the quarterly numbers look strong, ship it"}],"title":"Meet - ocproof-140455 (synthetic)","url":"https://meet.google.com/ocproof-140455","notes":["Muted Meet microphone for observe-only mode.","Installed Meet caption observer for observe-only transcript health."]}

=== run 2 — same shipped source, direct invocation (no production wrapper) ===
RESULT: page.evaluate resolved
raw    : {"clickedJoin":false,"clickedMicrophoneChoice":false,"inCall":true,"micMuted":false,"lobbyWaiting":false,"captioning":true,"captionsEnabledAttempted":true,"transcriptLines":1,"lastCaptionAt":"2026-09-12T18:17:18.775Z","lastCaptionSpeaker":"Dana Whitfield","lastCaptionText":"the quarterly numbers look strong, ship it","recentTranscript":[{"at":"2026-09-12T18:17:18.775Z","speaker":"Dana Whitfield","text":"the quarterly numbers look strong, ship it"}],"title":"Meet - ocproof-140455 (synthetic)","url":"https://meet.google.com/ocproof-140455","notes":["Muted Meet microphone for observe-only mode."]}

=== assertions ===
PASS  production path did not reject
PASS  direct invocation did not reject
PASS  status payload is valid JSON
PASS  inCall === true  — true
PASS  captioning === true  — true
PASS  caption text present in lastCaptionText  — the quarterly numbers look strong, ship it
PASS  transcriptLines === 1  — 1
PASS  lastCaptionSpeaker captured  — Dana Whitfield
PASS  recentTranscript has 1 entry  — [{"at":"2026-09-12T18:17:18.775Z","speaker":"Dana Whitfield","text":"the quarterly numbers look strong, ship it"}]
PASS  recentTranscript entry keys are exactly at/speaker/text  — ["at","speaker","text"]
PASS  no live DOM node leaked into the payload
full status payload  : {
  "clickedJoin": false,
  "clickedMicrophoneChoice": false,
  "inCall": true,
  "micMuted": false,
  "lobbyWaiting": false,
  "captioning": true,
  "captionsEnabledAttempted": true,
  "transcriptLines": 1,
  "lastCaptionAt": "2026-09-12T18:17:18.775Z",
  "lastCaptionSpeaker": "Dana Whitfield",
  "lastCaptionText": "the quarterly numbers look strong, ship it",
  "recentTranscript": [
    {
      "at": "2026-09-12T18:17:18.775Z",
      "speaker": "Dana Whitfield",
      "text": "the quarterly numbers look strong, ship it"
    }
  ],
  "title": "Meet - ocproof-140455 (synthetic)",
  "url": "https://meet.google.com/ocproof-140455",
  "notes": [
    "Muted Meet microphone for observe-only mode.",
    "Installed Meet caption observer for observe-only transcript health."
  ]
}

=== summary: AFTER run ===
PASS  page is a secure context with crypto.randomUUID
PASS  caption region exists
PASS  __soy creates a circular structure on the caption node
PASS  production path did not reject
PASS  direct invocation did not reject
PASS  status payload is valid JSON
PASS  inCall === true
PASS  captioning === true
PASS  caption text present in lastCaptionText
PASS  transcriptLines === 1
PASS  lastCaptionSpeaker captured
PASS  recentTranscript has 1 entry
PASS  recentTranscript entry keys are exactly at/speaker/text
PASS  no live DOM node leaked into the payload
checks: 14/14 passed
exit : 0

Artifacts (all outside the repo; nothing was committed or pushed)

  • harness: C:\Users\Administrator\AppData\Local\Temp\ocproof-140455-browser.mjs
  • raw outputs: C:\Users\Administrator\AppData\Local\Temp\ocproof-140455.before.txt,
    C:\Users\Administrator\AppData\Local\Temp\ocproof-140455.after.txt
  • worktree D:/code/wt-oc-140455 left clean at 97a0796469ad807725516232f94dba01577a8236.

Re-ran by the author

Both legs re-run by hand on this branch (97a0796469ad); decisive lines:

$ node --import ./scripts/tsx.mjs ocproof-140455-browser.mjs after
module sha256 : df00d041...   has stringifyResult: true
PASS  production path did not reject
PASS  status payload is valid JSON
PASS  inCall === true
PASS  captioning === true
PASS  caption text present in lastCaptionText
PASS  recentTranscript entry keys are exactly at/speaker/text
PASS  no live DOM node leaked into the payload
checks: 14/14 passed   exit: 0

$ git checkout HEAD~1 -- extensions/google-meet/src/transports/google-meet-page-scripts.ts && node --import ./scripts/tsx.mjs ocproof-140455-browser.mjs before
module sha256 : 4436f19d...   has stringifyResult: false
TypeError: Converting circular structure to JSON  ... property '__soy' -> 'node' closes the circle
  at JSON.stringify (<anonymous>) at eval (eval at evaluate) :495
PASS  production path rejects with the circular-JSON error
PASS  no status payload came back (inCall never reaches the caller)
checks: 6/6 passed   exit: 0

$ git checkout HEAD -- ... && git status --porcelain
(clean)

Boundary, stated plainly: this proves the fix at the real-browser / real-shipped-script layer (real Chromium via Playwright, real page.evaluate over 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.

@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from 024c90a to a64ea57 Compare September 12, 2026 15:06
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This 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.

  • Before: The original implementation threw during status serialization; current main already prevents this through caption projection.
  • After: The PR additionally drops DOM nodes and handles repeated objects during status serialization.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused code and credible browser-boundary evidence support correctness, while the remaining contribution needs owner disposition because main already fixes the original producer.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Finn763 supplied real Chromium/CDP before-and-after output exercising the generated status script against a genuine circular DOM node, returning valid inCall and caption data afterward; this supports the serialization boundary, not live Meet audio, and the older proof revision could not be compared locally.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Partial
User problem: On affected historical releases, circular caption DOM nodes prevented in-call health reporting and blocked the meeting audio workflow.
Reason: The regression remains useful, but the introduced serializer is now additional hardening rather than the missing root-cause repair, and the broader linked report is outside this PR’s scope.

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
Reviewed head: 2baa28783b9eb25e302c04d7841621b7c124ebd5
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should this PR retain the generic circular-safe serializer now that captionLine already excludes DOM nodes?
  • Recommendation: Narrow to regression coverage: Retain the circular-caption boundary test and use the existing caption projection as the serialization owner.
  • Why: The original failure is addressed on main and in the latest release, leaving regression coverage and defensive serialization as the distinct contribution; no recorded owner decision settles that remaining scope.

Before merge

  • Complete next step - After scope is settled, the contributor should resolve GitHub’s reported conflict while preserving main’s caption projection.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Google Meet status serialization changes intended behavior with a stated reason (1a2d9e5: The meeting-bot extraction kept platform DOM scripts in the Google Meet adapter while centralizing generic meeting mechanics.)
  • Caption payload projection keeps the original intent (79f8440: The participation foundation centralized caption row projection and retained plain source/provenance metadata without exposing DOM tracking fields.)
  • PR wrapper inventory keeps the original intent (387f698: The managed-source wrapper must carry its eager runtime import closure; the added contract path supplies an existing import.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e7b868b adds extensions/google-meet/src/transports/google-meet-page-scripts.ts:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e7b868bbabfc; files: extensions/google-meet/src/transports/google-meet-page-scripts.ts)
  • RoboClaw: Raw commit 79f8440 adds extensions/google-meet/src/transports/google-meet-caption-scripts.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 79f8440d23d2; files: extensions/google-meet/src/transports/google-meet-caption-scripts.ts)

PR surface

Source +27, Tests +91, Other +1. Total +119 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 28 1 +27
Tests 1 91 0 +91
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 3 120 1 +119

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is focused Google Meet reliability work, with the original crash already prevented by the released caption projection.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (13 earlier review cycles; latest 8 shown)
  • reviewed September 23, 2026, 6:18 PM ET / 22:18 UTC (Revision 6) sha unknown :: needs maintainer review before merge. :: none
  • reviewed September 23, 2026, 6:18 PM ET / 22:18 UTC (Revision 7) sha unknown :: needs maintainer review before merge. :: none
  • reviewed 2026-10-05T11:33:07.213Z sha 0d0b8c7a88816adb2d27023c107c700fbcb50750 :: blocked before merge. :: none
  • reviewed 2026-10-05T11:41:34.848Z sha 0d0b8c7a88816adb2d27023c107c700fbcb50750 :: blocked before merge. :: none
  • reviewed 2026-10-05T12:13:01.517Z sha caee3db :: needs maintainer review before merge. :: none
  • reviewed 2026-10-05T12:51:54.307Z sha 437fbe7ff95af710a6161922001b5c3be74ba230 :: needs changes before merge. :: [P3] [P3] Remove the test-only serializer export and Knip exception
  • reviewed 2026-10-05T13:22:18.274Z sha 2baa287 :: needs changes before merge. :: none
  • reviewed 2026-10-05T13:45:24.989Z sha 2baa287 :: needs maintainer review before merge. :: none

Reviewed November 12, 2026, 6:02 AM ET / 11:02 UTC (Revision 14).

@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from a64ea57 to 97a0796 Compare September 12, 2026 15:16
@Finn763

Finn763 commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The PR body now carries the strongest after-fix evidence this environment can produce: the shipped meetStatusScript executed through a real Chromium (Playwright, real page.evaluate over CDP, real https Meet origin) against a page whose caption node carries a genuine cyclic __soy back-reference — rejected with the circular-JSON error / no status returned before the fix, resolved, inCall:true, captioning:true, caption text present, no DOM node in the payload after (14/14 checks, both legs re-run by the author). A live caption-active Meet call is not available to me here (no Meet account / meeting); that layer is left to the repo’s e2e lanes or Mantis.

@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 12, 2026
@Finn763 Finn763 closed this Sep 16, 2026
@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from 97a0796 to 08584b3 Compare September 16, 2026 06:00
@Finn763 Finn763 reopened this Sep 16, 2026
@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from 6451659 to 0d0b8c7 Compare September 16, 2026 06:16
@fuller-stack-dev fuller-stack-dev self-assigned this Sep 17, 2026
…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.
@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from 0d0b8c7 to caee3db Compare October 5, 2026 11:57
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P1 High-priority user-facing bug, regression, or broken workflow. labels Oct 5, 2026
@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from 437fbe7 to f672c09 Compare October 5, 2026 12:58
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 5, 2026
@Finn763
Finn763 force-pushed the fix/oc-140455-descr branch from f672c09 to 2baa287 Compare October 5, 2026 13:07
@openclaw-barnacle

Copy link
Copy Markdown

This assigned pull request has been automatically marked as stale after being open for 27 days.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 10, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. plugin: google-meet proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S stale Marked as stale due to inactivity status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants