Skip to content

refactor(google-meet): share browser open and recovery setup - #140972

Merged
steipete merged 1 commit into
mainfrom
steipete/dedup-media-0906
Sep 7, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/dedup-media-0906

Conversation

@steipete

@steipete steipete commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Google Meet carries parallel browser/audio orchestration beside the shared meeting-bot owner. This maintainer-requested consolidation precursor removes the duplicated local/node browser open-or-recover sequence while the full SDK composition contract is decided.

Why This Change Was Made

Both Google Meet routes now use one private helper around the existing meeting-runtime browser APIs. Audio prerequisites and external health checks still finish before local browser routing, and bridge startup still waits for the same readiness check. Production delta: 16 added, 54 removed (net -38); tests unchanged.

The eventual canonical transport/facade/setup owners remain src/meeting-bot. This bounded PR does not claim that migration is complete. The caption-serialization work in #140682 is separate and untouched; #140792's platform-guard coverage is already on main.

User Impact

No intentional user-visible behavior, configuration, SDK signature, transcript storage, or endpoint-permission change.

Deferred API choice (maintainer)

The maintainer approved landing this bounded precursor independently; the broader API design below remains deferred.

Full consolidation needs public composition parameters that the campaign decision gate reserves for maintainer approval:

  • Node recovery: manual recovery deliberately re-resolves the configured node; leave/transcript reads preserve the session pin, including empty-string identity. Decide whether automatic health refresh should retain Google's configured-node behavior or use core's session pin.
  • Tracked-tab ownership: preserve create→join ownership and inherited shared-tab ownership. Google bridge restart omits the tracked target and requester session key that core carries; repairing that drift needs a multi-tab/requester regression case.
  • External bridge health: retain the documented bidi-only external daemon/start/health path. Core's node host supports it, but the Chrome transport and browser facade do not expose its bridge result or forward its command fields.
  • Rollback: core disposes failed engine transports, stops node bridges and rolls back browser joins; Google lacks that outer cleanup. This is source-supported cleanup drift, not yet an execution-proven fix. Decide and prove the intended policy before replacing the transport.
  • launch:false: Google recovers existing tabs on launch but skips browser leave; core permits leave for reused tabs. Preserve Google's current behavior until explicitly decided.

The facade also needs typed composition for Twilio, browser creation, mode normalization and keepBrowserTab; setup needs Google's OAuth/Twilio seed and diagnostic policy. Google transcribe currently invokes node start, while core skips it. Do not erase these differences in a factory swap.

Evidence

  • Refreshed onto main with the shared Telegram lint fixes; git range-diff confirmed this private helper extraction is unchanged.
  • node scripts/run-vitest.mjs extensions/google-meet src/meeting-bot: 49 files, 536 tests passed on the refreshed head.
  • node scripts/check-changed.mjs: 19 checks passed. Extension lint preparation hit the approved nested-worktree Declaration input escapes checkout limitation; exact-head hosted CI supplies that boundary proof.
  • Fresh independent Codex autoreview: scoped-clean through P2, zero actionable findings. git diff --check passed.
  • Exact-head CI run 34119393388 and the required openclaw/ci-gate passed on 3772deefc85b60ccde9d6c22766db791d1845380. Fresh check reads showed no failures; no manual CI rerun was required.
  • Native review artifacts validated, and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 140972 passed without changing the green CI head.
  • No live Chrome/audio meeting claim. Live multi-tab/lifecycle proof remains part of the deferred broader migration.

@clawsweeper

clawsweeper Bot commented Sep 7, 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 8:05 AM ET / 12:05 UTC.

ClawSweeper review

What this changes

Shares Google Meet’s browser opening and existing-tab recovery between local Chrome and paired-node Chrome while preserving audio preparation and readiness checks.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-requested consolidation remains useful and is absent from the inspected main and latest release. No introduced correctness defect was found; the broader migration decisions do not block this bounded extraction.

Priority: P3
Reviewed head: 3772deefc85b60ccde9d6c22766db791d1845380

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving extraction with relevant existing coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored private extraction is exempt from external-contributor proof requirements and introduces no material authority change; the body reports focused tests but explicitly claims no live Chrome/audio run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored private extraction is exempt from external-contributor proof requirements and introduces no material authority change; the body reports focused tests but explicitly claims no live Chrome/audio run.
Evidence reviewed 7 items Pinned introduction reviewed: The complete merge-base-to-head diff changes only the private Chrome orchestration. Recovery retains session adoption, autoJoin, caption capture, meeting identity, and reused-tab ownership; node requests retain the same forwarding fields.
Main and release still contain the duplication: Both inspected current main and v2026.9.2 retain the separate local recovery branch. The supplied related PRs address caption serialization and platform-guard coverage, not this extraction.
Existing public implementation boundary: The meeting-runtime SDK exports browser opening and recovery from OpenClaw’s meeting-bot implementation. The PR continues using those APIs without changing their public signatures; no Codex dependency contract is implicated.
Findings None None.
Security None None.

How this fits together

Google Meet’s transport receives meeting URLs, session identity, and configuration from the plugin runtime. It controls local or paired-node Chrome through shared meeting APIs, then starts audio when browser health permits.

flowchart TD
 A[Meeting join or bridge recovery] --> B[Choose local or paired node]
 B --> C[Prepare audio prerequisites]
 C --> D[Shared browser setup]
 D --> E{Launch enabled}
 E -->|Yes| F[Open or reuse meeting tab]
 E -->|No| G[Recover existing meeting tab]
 F --> H[Check readiness and return audio and browser state]
 G --> H
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -38. Total -38 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 16 54 -38
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 16 54 -38

Review metrics

None.

Technical review

Best possible solution:

Retain the private consolidation while keeping full transport migration and its lifecycle policy choices in separately approved work.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR removes duplicated orchestration rather than fixing a reported runtime defect; source inspection establishes the duplication.

Is this the best way to solve the issue?

Yes: sharing the private sequence preserves existing SDK calls and Google-specific behavior without prematurely adopting the broader transport factory.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0f8932785cca.

Labels

Label justifications:

  • P3: This is a bounded internal consolidation with no intended user-visible behavior or configuration change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored private extraction is exempt from external-contributor proof requirements and introduces no material authority change; the body reports focused tests but explicitly claims no live Chrome/audio run.

Evidence

What I checked:

  • Pinned introduction reviewed: The complete merge-base-to-head diff changes only the private Chrome orchestration. Recovery retains session adoption, autoJoin, caption capture, meeting identity, and reused-tab ownership; node requests retain the same forwarding fields. (extensions/google-meet/src/transports/chrome.ts:337, 3772deefc85b)
  • Main and release still contain the duplication: Both inspected current main and v2026.9.2 retain the separate local recovery branch. The supplied related PRs address caption serialization and platform-guard coverage, not this extraction. (extensions/google-meet/src/transports/chrome.ts:213, 0f8932785cca)
  • Existing public implementation boundary: The meeting-runtime SDK exports browser opening and recovery from OpenClaw’s meeting-bot implementation. The PR continues using those APIs without changing their public signatures; no Codex dependency contract is implicated. (src/plugin-sdk/meeting-runtime.ts:45, 3772deefc85b)
  • Documented transport contract: Documentation distinguishes Gateway-hosted Chrome from paired-node Chrome, requires audio preparation before joining, and defines launch:false as reusing an already-open session. The extraction preserves these contracts. Public docs: docs/plugins/google-meet.md. (docs/plugins/google-meet.md:283, 3772deefc85b)
  • Existing boundary coverage: Inspected tests cover blocking node audio without confirmed microphone readiness, starting it after an unmuted observation, and withholding it when launch:false cannot recover a tab. These tests are supplemental source evidence; this review did not execute them. (extensions/google-meet/index.test.ts:4505, 3772deefc85b)
  • Maintainer scope and supplied validation: The captured PR body explicitly approves this bounded precursor independently of the deferred composition API, reports 536 passing tests, and makes no live Chrome/audio claim. Repository State identifies the author as MEMBER and the item carries the protected maintainer label. The previous review projection contains no findings or published rank-up moves. (3772deefc85b)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-07T07:39:30.970Z sha af15e1b :: blocked before merge. :: none
  • reviewed 2026-09-07T10:28:40.826Z sha 2023360 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/dedup-media-0906 branch from af15e1b to 2023360 Compare September 7, 2026 10:13
@steipete steipete self-assigned this Sep 7, 2026
@steipete
steipete marked this pull request as ready for review September 7, 2026 10:13
Preserve local and node prerequisite ordering, tab adoption, and bridge readiness while sharing their private browser sequence. Full SDK migration remains decision-gated.

Proof: node scripts/run-vitest.mjs extensions/google-meet src/meeting-bot (536 passed); pnpm build passed; autoreview clean through P2. Changed checks: 19 passed, extension lint blocked by the documented nested-checkout declaration boundary.
@steipete
steipete force-pushed the steipete/dedup-media-0906 branch from 2023360 to 3772dee Compare September 7, 2026 11:58
@steipete
steipete merged commit 766cfd9 into main Sep 7, 2026
106 of 108 checks passed
@steipete
steipete deleted the steipete/dedup-media-0906 branch September 7, 2026 12:09
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 7, 2026
* commit 'b07b7d8bd1293c4e70ece7281b9cb8422318ae5a': (30 commits)
  fix(ui): keep reopened select menus visible (#141047)
  test(ui): fix dashboard gallery client fixtures (#141203)
  refactor(links): remove unused understanding results (#141200)
  refactor(plugins): share manifest contribution projection (#141193)
  refactor(logging): share portable redaction pattern mechanics (#140742)
  chore(ui): refresh control ui locales (#141208)
  refactor(minimax): reuse generated video asset downloader (#141094)
  fix(test): await Telegram loopback prompt reception (#141204)
  refactor(acp): remove unused in-memory event ledger (#141145)
  improve(models): reduce overhead in catalog discovery (#141154)
  refactor(channels): share approval reaction settlement (#140645)
  chore(i18n): refresh native locales (#141089)
  refactor: share one-shot tickets and WebSocket helpers across desktop, node, and browser streams (#141185)
  refactor(google-meet): share browser open and recovery setup (#140972)
  refactor(plugins): share npm version queries (#141166)
  refactor(http): share bounded response byte consumption (#140654)
  refactor(whatsapp): share prompt selection (#141195)
  fix: bound temporary storage for terminal upload batches (#141116)
  perf(markdown): reuse image parser configuration (#141126)
  fix(policy): align tool requirements with core vocabulary (#140628)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
…w#140972)

Preserve local and node prerequisite ordering, tab adoption, and bridge readiness while sharing their private browser sequence. Full SDK migration remains decision-gated.

Proof: node scripts/run-vitest.mjs extensions/google-meet src/meeting-bot (536 passed); pnpm build passed; autoreview clean through P2. Changed checks: 19 passed, extension lint blocked by the documented nested-checkout declaration boundary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: google-meet rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant