Skip to content

feat(google-meet): send and answer in-call chat - #160868

Draft
roboclaw-bot wants to merge 2 commits into
mainfrom
codex/meeting-native-chat-pr1-migration
Draft

roboclaw-bot wants to merge 2 commits into
mainfrom
codex/meeting-native-chat-pr1-migration

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #2717 (the broader meeting-chat assistance use case; this PR does not integrate Vexa).
Builds on #152327.

What Problem This Solves

Google Meet agents can participate through audio but cannot yet read and answer the meeting’s native in-call messages.

User Impact

Chrome and Chrome-node meetings can observe native chat and send exact written replies through send_chat, the CLI, or generic participation requests. Agent/bidi modes can answer fresh incoming requests in writing; observe-only mode never replies automatically. Native-chat-triggered speech requires a current participant request explicitly asking for voice. Ordinary manual speech and Teams/Zoom behavior remain unchanged.

Requests retain stable IDs and durable results. Cancellation after native dispatch remains best effort: an uncertain result may already have produced an effect and must not be retried under a new request ID.

Inherited participation limitations remain: source age starts at first host observation, the 10,000-identity session bound fails closed, and direct source-free written requests do not gain a new host-attested operator-versus-model origin grant in this PR.

Why This Change Was Made

Port the native-chat layer onto the merged participation owner instead of replaying its old foundation. The plugin owns native message discovery and delivery while the shared runtime continues to own source authority, replay protection, speech readiness, and cleanup.

The migration preserves transcript provenance and speaker metadata, pinned browser routes, corrections, literal guarded speech, and the written-default response policy. It also prevents a slow optional chat inventory read from holding the browser-tab lock long enough to terminate existing meeting audio. Inventory reads stay outside the audio-critical lock; page evaluation remains serialized and revalidates the session and URL.

Evidence

Refreshed onto main@76beb5685887; tested candidate 5ca7f4ecaca0 (tree 0371b163aaa2). Both attributed commits are preserved. The audio-lock fix replayed unchanged.

  • Tests: 786 passed across 31 files, zero failures/skips, in 173.17s. All seven native invocations completed and joined; original JSON reports match the requested selection. Coverage includes every changed suite plus shared meeting, Talk, browser transport, Google/OpenAI/xAI voice and SDK siblings.
  • Compile/static checks: the complete 67-path changed-check plan passed in 24m 26.7s, including core production, all 27 core-test type graphs, extension production/test and script types, formatting, lint, SDK/boundary/storage/import guards. Three nonblocking max-lines warnings are byte-unchanged from the pinned main base; no lint errors.
  • Clean build: normal guarded pnpm build passed in 7m 8.7s. Build metadata matches this clean commit. Frozen dependencies; Node 26.8.2 and pnpm 12.5.1.
  • Integration review: conflict resolution preserves upstream shared parameter-type ownership and combines both test inventories. No additional runtime behavior was introduced by this refresh; previous behavior reviews are retained for unchanged code.
  • Reliability fixes retained: explicit leading voice intent, final native-source freshness, retired provider audio/transcript fencing, cancellation cleanup, and preserving consecutive exact spoken replies. These have failing-before/passing-after regressions from the preceding local work and pass on this refreshed head.
  • SDK: 3,651 public exports / 2,113 callables; 151 public entrypoints and zero public wildcard re-exports. The existing browser-lock helper remains +1 export / +1 callable; this refresh adds no SDK surface.

Still draft / before merge: no live Meet, authenticated provider or device proof was run. The existing review’s source-free-send authority, page-session capacity and session-visible observer-error concerns remain open. Local validation does not resolve those concerns or establish merge readiness.

Changed-test measured cost

Native per-file elapsed time at --maxWorkers=1, from original JSON reports; excludes shared startup/preparation. No hosted CI timing is claimed for this head.

Changed test file Tests Native file wall (s)
extensions/google-meet/chat-observer-runtime-registration.test.ts 33 11.695
extensions/google-meet/chat-runtime-registration.test.ts 5 2.191
extensions/google-meet/index.test.ts 80 11.864
extensions/google-meet/participation-registration.test.ts 15 0.029
extensions/google-meet/participation-runtime-registration.test.ts 1 0.791
extensions/google-meet/src/cli-output-mode.test.ts 4 0.005
extensions/google-meet/src/cli-runtime.test.ts 37 0.079
extensions/google-meet/src/google-meet-chat.test.ts 74 0.115
extensions/google-meet/src/transports/chrome-chat.test.ts 39 0.088
extensions/google-meet/src/transports/google-meet-chat-scripts.test.ts 60 0.295
extensions/openai/realtime-voice-bridge-events.test.ts 39 3.940
extensions/xai/realtime-voice-provider.test.ts 48 0.169
extensions/xai/realtime-voice-transcript.test.ts 5 0.015
src/meeting-bot/chrome-transport.test.ts 15 0.553
src/meeting-bot/realtime-engine.continuous.test.ts 12 0.090
src/meeting-bot/realtime-engine.test.ts 29 0.948
src/meeting-bot/realtime-output-owner.test.ts 40 0.064
src/meeting-bot/realtime-shutdown.test.ts 33 0.106
src/meeting-bot/session-runtime.speech.test.ts 10 0.018
src/meeting-bot/session-runtime.test.ts 30 3.294
src/talk/realtime-session-harness.test.ts 36 0.055

These are isolated boundary tests with simulated browser/audio services, not proof of current live Meet DOM compatibility or remote audibility.

Contributed by @canvrno-oai.

Work sessions

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts plugin: google-meet plugin: zoom Zoom plugin plugin: file-transfer plugin: teams-meetings Teams Meetings plugin size: XL labels Sep 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

The branch adds Google Meet chat observation, manual tool and CLI sends, automatic written replies, and source-guarded speech through the shared meeting runtime.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Substantial boundary tests support useful implementation work, but authority proof and the retained observer defect prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Merge readiness

⛔ Blocked before merge - 9 items remain

The native-chat capability remains distinct from current main and deserves continued review. The prior observer-status defect persists, and the refreshed branch has unresolved native-send authority and compatibility questions.

Priority: P2
Reviewed head: 5ca7f4ecaca06a749789d63f0a355fd6f5f6127e
Owner decision: Required. See Decision needed.

Decision needed

  • Question: May source-free model-facing requests send native Meet messages under existing tool authority, or must direct sends carry a live host-held operator grant?
  • Recommendation: Bind direct sends to live authority: Require a current source or host-held operator grant and revalidate it before the native Send effect.
  • Why: The inherited contract deliberately permits source omission, but this branch enables its first real Google Meet effect; changing or accepting that boundary requires explicit intent.

Before merge

  • Add real behavior proof - Authority-chain proof required: the registered tool now reaches native Send, but supplied browser/audio simulations do not establish allowed and nearest-forbidden origin behavior or revocation/reassignment rejection before final I/O. Provide redacted production-boundary traces for that scoped authority contract; diagnostics or terminal output count, and recordings may help. Redact private meeting details and credentials. Updating the PR body should trigger re-review; otherwise ask a maintainer to comment @clawsweeper re-review. No introduced stored-data format change was identified. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Surface chat observer failures in session status (P2) - The prior finding remains unresolved. If the native chat panel is unavailable, its DOM changes, or browser capture repeatedly rejects, the observer calls this handler and continues polling, but only a debug log changes. The session can therefore appear healthy while incoming requests receive no answers. Record session-visible chat readiness and the last failure, with recovery clearing that state.
  • Resolve security concern: Native sends lack an attested direct-operator origin - The model-facing alias permits source omission and the page guard accepts that absence before Send. Session ownership is enforced, but the stated direct-operator distinction is not represented by a trusted grant; accepting this expanded effect boundary requires an explicit decision.
  • Resolve merge risk - Native source-free sends now reach a real Send click without attested operator origin; the earlier foundation acceptance does not explicitly settle this expanded effect boundary.
  • Resolve merge risk - After 256 dispatched page requests, new sends fail until the page/session is renewed; replay-safe reclamation or explicit acceptance of this new operational limit remains unresolved.
  • Resolve merge risk - The public browser-lock helper and expanded optional voice callbacks need explicit SDK acceptance; approval of the earlier foundation contract does not cover this expansion.
  • Resolve merge risk - Existing agent and bidi configurations begin automatically answering native chat after upgrade; fresh and upgrade behavior, including preservation of observe-only operation and existing audio, remains unqualified.
  • Complete next step - Resolve the observer-status finding, decide native source-free authority and the page limit, obtain SDK acceptance, and provide scoped authority plus fresh/upgrade qualification before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Surface chat observer failures in session status — extensions/google-meet/src/runtime.ts:240-241
  • [medium] Native sends lack an attested direct-operator origin — extensions/google-meet/src/transports/google-meet-source-check.ts:12
Agent review details

How this fits together

The Google Meet plugin reads messages from a tracked browser meeting and passes requests through OpenClaw’s shared participation owner. That owner checks session and source validity, records duplicate-safe results, and dispatches written or spoken replies.

flowchart LR
A[Native Meet messages] --> B[Chat observer]
C[Tool or CLI request] --> D[Participation owner]
B --> E[Agent consultation]
E --> D
D --> F[Request ledger]
D --> G[Browser Send or audio output]
Loading

Technical review

Best possible solution:

Keep native chat in the Google Meet plugin, with shared replay ownership, explicit authority for direct sends, visible observer recovery, and qualified existing-session behavior.

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

Yes for the reviewed branch’s observer-status defect: a rejected chat read reaches only the debug logger while session status remains active. No failing current-main or live Meet run was executed.

Is this the best way to solve the issue?

Partly: reusing the plugin and shared participation owner is appropriate, but native-effect authority, observer visibility, and upgrade behavior need qualification before this implementation is ready.

Full review comments:

  • [P2] Surface chat observer failures in session status — extensions/google-meet/src/runtime.ts:240-241
    The prior finding remains unresolved. If the native chat panel is unavailable, its DOM changes, or browser capture repeatedly rejects, the observer calls this handler and continues polling, but only a debug log changes. The session can therefore appear healthy while incoming requests receive no answers. Record session-visible chat readiness and the last failure, with recovery clearing that state.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 660556970ac3.

Merge-risk options

Maintainer options:

  1. Qualify the native-chat boundary (recommended)
    Resolve direct-send authority, surface observer health, settle the page limit, obtain SDK acceptance, and qualify fresh and upgraded meeting configurations.
  2. Narrow the increment
    Defer direct source-free sends and any unapproved SDK expansion while retaining source-bound chat work that can be safely qualified.

Security

Needs attention: Native source-free sending needs an explicit authority disposition; no unrelated dependency, download, or secret-access expansion was identified.

Evidence

Security concerns:

  • [medium] Native sends lack an attested direct-operator origin — extensions/google-meet/src/transports/google-meet-source-check.ts:12
    The model-facing alias permits source omission and the page guard accepts that absence before Send. Session ownership is enforced, but the stated direct-operator distinction is not represented by a trusted grant; accepting this expanded effect boundary requires an explicit decision.
    Confidence: 0.93

What I checked:

  • Current main still lacks native chat: The pinned main adapter has audio, captions, and browser controls but no native participation adapter. The merged foundation explicitly excluded native chat, so it does not supersede this contribution. (extensions/google-meet/src/transports/google-meet-platform-adapter.ts:131, 660556970ac3)
  • Latest release boundary: The latest supplied release, v2026.9.8, exposes generic participation but no send_chat action. Native-chat implementation is not established in that release. (extensions/google-meet/src/plugin-schema.ts:11, fc23bc864e45)
  • Prior observer finding remains: Observer read and reply errors reach only logger.debug; no session-visible chat readiness or error state is recorded. This matches the retained finding in the previous completed review. The earlier reviewed object was unavailable for comparison, so no unchanged-code or late-discovery attribution is asserted. (extensions/google-meet/src/runtime.ts:240, 5ca7f4ecaca0)
  • Native source-free effect boundary: The new registered send_chat action accepts an omitted sourceId, the runtime forwards it to the browser participation owner, and the new page guard returns true when no source is supplied before reaching Send. Session ownership is checked, but operator-versus-model origin is not attested. The registered tests demonstrate source-free sending with simulated browser I/O. (extensions/google-meet/src/transports/google-meet-source-check.ts:12, 5ca7f4ecaca0)
  • Foundation acceptance has narrower scope: feat(meetings): add durable participation foundation #152327 merged the foundation and explicitly accepted first-observation age, source-free authority, and lifetime identity-capacity limitations for that incremental implementation. Its landed message also states that Google Meet advertised no native actions. Those inherited limitations are not re-raised as new defects; enabling a real Send effect requires a scope-specific authority decision. (79f8440d23d2)
  • New page-lifetime send limit: The introduced page script retains every dispatched attempt and rejects new requests at 256 entries. No reclamation path exists in that page state; this limit is separate from the foundation’s accepted 10,000-identity bound. (extensions/google-meet/src/transports/google-meet-chat-scripts.ts:164, 5ca7f4ecaca0)

PR surface

Source +1844, Tests +5673, Docs +60, Other +1. Total +7578 across 67 files.

View PR surface stats
Area Files Added Removed Net
Source 35 2551 707 +1844
Tests 25 5818 145 +5673
Docs 6 61 1 +60
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 2 +1
Total 67 8433 855 +7578

Review metrics

Metric Value Why it matters
Public SDK growth 1 export and 1 callable added The browser-lock helper has a concrete production consumer but needs acceptance separate from the foundation’s prior budget approval.
Page send capacity 256 dispatched requests per page session This new unreclaimed limit can stop further written replies during a long meeting.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful, bounded meeting feature with unresolved review concerns rather than an established urgent production regression.
  • merge-risk: 🚨 security-boundary: Enabling native sends gives source-free model-facing requests a real effect without an attested operator-origin distinction.
  • merge-risk: 🚨 compatibility: The branch expands public SDK contracts and automatically enables chat replies for existing agent and bidi configurations.
  • merge-risk: 🚨 availability: The new page-lifetime request limit can disable further sends, while observer failures remain invisible in session status.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Show allowed and nearest-forbidden final Send behavior, including revocation or reassignment before I/O.
  • Expose observer failure and recovery in session status and settle the page-lifetime send limit.
  • Obtain SDK acceptance and qualify fresh and upgraded meeting configurations.

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 (1 earlier review cycle)
  • reviewed 2026-09-29T01:45:09.092Z sha 4b5ec74 :: needs real behavior proof before merge. :: [P2] Surface chat observer failures to the session

Reviewed October 6, 2026, 4:39 PM ET / 20:39 UTC (Revision 2).

roboclaw-bot and others added 2 commits October 6, 2026 19:34
Port the native-chat layer from 30ec8f6 and e450cf1 onto
the merged participation foundation and current meeting lifecycle owners.

Preserve provenance, replay protection, pinned browser routes, guarded
speech and full transcript metadata. Use monotonic browser deadlines,
keep optional chat startup off the join path, and release canceled
read-only consultations without abandoning native effect settlement.

Co-authored-by: canvrno-oai <[email protected]>
Move read-only tab inventory outside the audio-critical target lock and bound optional serialized capture while preserving live ownership checks. Add fake-clock regressions for Chrome and pinned-node reads.

Co-authored-by: canvrno-oai <[email protected]>

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

docs Improvements or additions to documentation extensions: openai extensions: xai merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: file-transfer plugin: google-meet rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant