Skip to content

Start voice polling after session creation - #225

Merged
JulioMCruz merged 1 commit into
mainfrom
agent/fix-voice-session-poll
Aug 15, 2026
Merged

Start voice polling after session creation#225
JulioMCruz merged 1 commit into
mainfrom
agent/fix-voice-session-poll

Conversation

@JulioMCruz

Copy link
Copy Markdown
Contributor

What changed

  • store the created voice session in React state after createVoiceSession returns
  • activate session polling from that state while retaining refs for cancellation and cleanup
  • add a controller regression test proving joined transitions to in-call and exposes End call
  • document the polling lifecycle

Root cause

The polling effect read only sessionRef.current. Session creation populated the ref after the connecting render, but ref assignment did not trigger another render, so the effect never restarted.

Validation

  • typecheck passed
  • ESLint passed on changed TypeScript files
  • 3 focused suites / 5 tests passed
  • production build generated all 51 routes with non-secret placeholder Firebase values
  • diff and secret scans passed

No real call, credential operation, or deployment occurred.

@JulioMCruz
JulioMCruz marked this pull request as ready for review August 15, 2026 04:58
@JulioMCruz
JulioMCruz merged commit 28a9aa2 into main Aug 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant