Skip to content

fix(voice): fence realtime bridge lifecycle - #129249

Merged
steipete merged 1 commit into
mainfrom
codex/land-aug25-realtime-facade
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/land-aug25-realtime-facade

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Google and xAI realtime voice sessions could retain stale connection work or callbacks across close and reconnect boundaries, allowing an older bridge generation to affect the active session.

Why This Change Was Made

The realtime facades now use one lifecycle generation as the authority for connection setup, input acceptance, queued audio, callbacks, and terminal delivery. Google explicitly reopens only after close while fencing stale lazy loads and callbacks; xAI reuses the same canonical lifecycle ownership instead of maintaining a parallel state machine.

Production LOC: +89/-120 (net -31) | Tests: +70/-0

User Impact

Realtime voice reconnects are predictable: closed or superseded sessions cannot leak stale events into the current call, terminal outcomes remain single-owner, and buffered audio and tool results stay attached to the correct session generation.

Evidence

  • Routed owner and sibling suite: 332/332 tests passed across Google, xAI, plugin SDK, and Talk runtime coverage.
  • Formatting, diff validation, and focused direct lint passed.
  • Independent lifecycle and regression review found no behavioral or security findings.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 25, 2026 10:46
@steipete
steipete merged commit 9f47225 into main Aug 25, 2026
172 checks passed
@steipete
steipete deleted the codex/land-aug25-realtime-facade branch August 25, 2026 10:58
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant