Repository navigation
fix(google): honor Gemini Live new-session activation deadlines - #117490
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 3:44 AM ET / 07:44 UTC. ClawSweeper reviewWhat this changesThe Google provider now returns the existing 60-second Gemini Live new-session activation deadline in epoch milliseconds for browser Talk sessions, with a fake-clock regression test preserving the separate 30-minute connected-session token lifetime. Merge readinessThe patch correctly repairs a current Google Live startup rejection, but this PR carries the protected Priority: P1 Review scores
Verification
How this fits togetherThe Google plugin mints a browser-facing Gemini Live token and reports its usable connection deadline to Gateway Talk. Gateway uses that deadline before persisting a client-owned voice session, while the browser connects directly to Google over the provider WebSocket. flowchart LR
A[Browser Talk request] --> B[Gateway Talk session creation]
B --> C[Google provider token mint]
C --> D[60-second connection deadline]
D --> E[Gateway startup deadline check]
E --> F[Persisted client voice session]
F --> G[Browser Google Live WebSocket]
Decision needed
Why: The patch is source-consistent and live-proven, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +26. Total +26 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the provider-owned fix after the assigned maintainer confirms that Gateway should continue using Google’s new-session activation deadline only for startup admission while the Google token retains its separate 30-minute connected-session lifetime. Do we have a high-confidence way to reproduce the issue? Yes, from current source: Gateway compares Is this the best way to solve the issue? Yes. Returning the existing provider-owned AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1e9a620a28d6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
…on-activation-deadline fix(google): honor Gemini Live new-session activation deadlines
What Problem This Solves
Google Live browser Talk sessions were rejected during startup because the Google provider returned an epoch-seconds expiration while the Gateway and persisted session owner require epoch milliseconds. A naive 30-minute conversion also misrepresents token validity: Google permits creating a new Live connection for only 60 seconds, even though an already established session remains valid for 30 minutes.
Why This Change Was Made
The provider now returns the existing
newSessionExpiresAtMsvalue as its browser-session expiration. Google SDK requests retain their independent ISO expiration fields:newSessionExpireTimeremains 60 seconds,expireTimeremains 30 minutes, and all token constraints, authentication, cancellation, and protocol shapes stay unchanged.User Impact
Google Live Talk can start normally, and delayed microphone permission or other startup delays cannot cause OpenClaw to treat an already-expired new-connection token as valid. Existing connected Live sessions retain their full 30-minute lifetime.
Evidence
node scripts/run-vitest.mjs extensions/google/realtime-voice-provider.test.ts: 50/50 passed.gpt-5.6-solhigh autoreview with--max-priority P3: zero findings, confidence 0.99.RealtimeVoiceBridgeCreateRequestwarning on the clean baseline; no clean typecheck is claimed.provider-websocket/google-live-bidi, a 13-digit epoch-millisecond expiry, and an activation delta of exactly 60,000 ms.setupComplete, accepted a JPEG video frame, invokeddescribe_view, and accepted the matching function response usinggemini-3.1-flash-live-preview.talk.client.toolCall, audio append, tool-result submission, close, listening/thinking states, and user/assistant transcripts.