Repository navigation
refactor(meeting-bot): extract browser meeting-bot core behind MeetingPlatformAdapter - #109755
Conversation
8779057 to
8b9c9a1
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87790578ec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| this.options.isTalkBackMode(resolved.mode) && speechInstructions | ||
| ? await this.speakWhenReady(reusable, speechInstructions) | ||
| : false; | ||
| return { session: reusable, spoken }; |
There was a problem hiding this comment.
Settle retained tabs before returning a reused session
When Chrome/Chrome-node has a reusable session plus an incompatible same-Meet-code session on a different tab, this return skips the retained-tab settlement that only runs for newly launched replacements. The scenario is reachable because extensions/google-meet/src/transports/google-meet-urls.ts:24-28 normalizes away query params while src/meeting-bot/browser-controller.ts:120-125 can keep distinct account-hinted tabs; the loop above then ends the incompatible session with keepBrowserTab, but this branch returns the reusable session without releasing the other tab or clearing its ownership, leaving that browser participant in the meeting with no active session to clean it up.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 5:23 AM ET / 09:23 UTC. Summary PR surface: Source +1886, Tests +1086, Docs +5, Config +4, Generated 0, Other +1. Total +2982 across 58 files. Reproducibility: not applicable. as a bug reproduction: this is an architectural extraction and new public SDK capability. Regression safety instead depends on live Google Meet proof for local Chrome, paired-node audio, and dial-in paths, which is currently absent. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Land the shared implementation behind an internal or bundled-only boundary, prove existing Google Meet local-browser, paired-node, and dial-in behavior, validate the adapter against a second platform, and then publish only the minimal shared SDK contract that both adapters require. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this is an architectural extraction and new public SDK capability. Regression safety instead depends on live Google Meet proof for local Chrome, paired-node audio, and dial-in paths, which is currently absent. Is this the best way to solve the issue? No. Sharing the implementation is reasonable, but publishing the entire first-platform abstraction as a supported SDK before a second adapter validates it is not the safest or narrowest long-term solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 708d2020d86c. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1886, Tests +1086, Docs +5, Config +4, Generated 0, Other +1. Total +2982 across 58 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (5 earlier review cycles)
|
1ce7c05 to
203cb85
Compare
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
…lint/test types after extraction
203cb85 to
a05a9dc
Compare
|
Merged via squash.
|
…gPlatformAdapter (openclaw#109755) * refactor(meeting-bot): extract browser meeting-bot core behind MeetingPlatformAdapter * chore(google-meet): prune max-lines baseline entries shrunk by extraction * fix(meeting-bot): drop orphaned extension realtime files and refresh lint/test types after extraction * chore(google-meet): prune deleted realtime max-lines baseline * chore(meeting-bot): remove release-owned changelog entry * fix(meeting-bot): harden session leave, cleanup retry, and engine teardown paths
…gPlatformAdapter (openclaw#109755) * refactor(meeting-bot): extract browser meeting-bot core behind MeetingPlatformAdapter * chore(google-meet): prune max-lines baseline entries shrunk by extraction * fix(meeting-bot): drop orphaned extension realtime files and refresh lint/test types after extraction * chore(google-meet): prune deleted realtime max-lines baseline * chore(meeting-bot): remove release-owned changelog entry * fix(meeting-bot): harden session leave, cleanup retry, and engine teardown paths
What Problem This Solves
extensions/google-meet(~15k production LOC) was ~60% generic "join a WebRTC meeting site as a Chrome bot" machinery — session lifecycle, browser-tab control, virtual-audio bridging, node relay, realtime engines, setup checks, dial-in delegation — all locked inside one plugin. Adding Microsoft Teams (next PR in this track) would have meant duplicating all of it.Why This Change Was Made
Phase 5 of the voice-stack consolidation (follows #109413, #109466, #109497, #109640). The platform-agnostic runtime moves to core
src/meeting-bot/**behind a newopenclaw/plugin-sdk/meeting-runtimebarrel (same pattern assrc/talk→realtime-voice): session runtime with per-meeting join locks and transcript retention, browser controller (tab lifecycle, polling, recovery), node-host audio bridge (SoX, bounded queue) with injected command names, realtime agent/bidi engines, audio transports, setup-check aggregation,voicecall.*dial-in delegation, and theMeetingPlatformAdaptercontract (platform owns URL semantics, in-page DOM scripts, manual-action classification, create/dial-in flows; core owns mechanism).google-meet becomes the first adapter. Frozen ownership stays in the plugin: config keys,
googlemeet.*gateway methods,googlemeetCLI,google_meettool,googlemeet.chromenode command, health field names,[google-meet]log scope, Meet URL/authuser/locale handling, DOM selectors and scripts, Meet REST/Calendar/Drive/OAuth, Twilio dial-plan mapping.Wire compatibility:
GoogleMeetSession/GoogleMeetChromeHealthkeep their exact JSON shapes (generic types aliased/intersected; the manual-action category model stays internal while adapters supply today's reason/message strings), proven by the existing exact-value test suite (274 tests green).Three review-hardening cycles ran on the extraction (Codex gpt-5.6-sol xhigh, chunked): 13 accepted findings fixed — including per-meeting locking for dial-in joins, incompatible shared-tab reconciliation, partial-join rollback (stop transports, release tabs), one unified failed-init cleanup path for the STT engine, rejection-handled async cleanup (no unhandled rejections from fire-and-forget stops), turn/output lifecycle completion on TTS failure, manual-action propagation in browser recovery, node pull-waiter cleanup, initial-transcript trimming, and excluding Meet's
/newcreation route from reusable meeting identity. Two findings rejected as shipped-behavior contracts (echo-check ordering — documented inline;micMuted !== truereadiness semantics).User Impact
None intended for Google Meet users — same config, commands, health output, and behavior, now with the hardening fixes above. Enables new meeting platforms as thin adapter plugins.
Evidence
node scripts/run-vitest.mjs extensions/google-meet src/meeting-bot: 21 files, 274 tests pass (includes new coverage: concurrent dial-in joins, ended-session speech rejection, STT init cleanup, output-lifecycle failure, waiter timeout cleanup, join rollback, initial-snapshot trim,/newidentity).pnpm plugin-sdk:surface:check(+1 entrypoint, +81 exports, +32 callables, annotated),plugin-sdk:api:check,check-deadcode-exports(0 across all scans),tsgo:extensions+tsgo:core, targeted oxlint: all green.Follow-ups (tracked): transcript cursor gap semantics on dropped-line jumps (pre-existing, moved); recovery tab ranking preference; micMuted unknown-state policy decision.