Repository navigation
feat(live): the call IS its airc room — server-authoritative room_id keying (#193 slice A) - #2095
Merged
Merged
Conversation
…— room_id is the canonical call key (#193 slice A) voice/register-session now adopts the airc room_id as THE call/session key: the session registers under room_id, and room_id becomes the LiveKit room name (STT listener, ambient audio, agent batch, avatar video pump). A divergent client-minted session_id is recorded as a LEGACY alias (session_id -> room_id) and every other voice/* verb that takes a call/session id resolves through ONE entry-point helper, VoiceState::canonical_call_id — end-session, on-utterance, speak-in-call, play-handle, inject-audio, ambient-add/inject/remove, poll-transcriptions. No per-site id logic. The MIRROR ROOM probe is demoted to a calmer warn ("legacy divergent session_id aliased to room_id, client cutover pending — #193 slice B"); it going silent after slice B is the done-signal. The register idempotency guard keys on the CANONICAL id, so a browser-refresh re-join (fresh minted session_id, same room) dedupes instead of double-spawning listeners and agents; the fresh legacy id is still aliased so subsequent verbs resolve. Aliases are dropped when their call ends. Tests (modules/live.rs, one mod): canonical registration records no alias; divergent registration keys the call by room and legacy-addressed on-utterance/end-session reach the same session; re-register with either id dedupes on the canonical id. Client cutover (slice B) and typed RoomId (slice C) intentionally deferred. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 2, 2026
…n the wire (#193 slice B) (#2103) The bridge is the one choke point that knows both ids, so the collapse lands here: voiceRegisterSession sends roomId on BOTH wire fields (the LiveKit call IS the airc room, no parallel identity), AIAudioBridge joins AIs under the same canonical id, and a session→room map translates the verbs that still receive the browser-tab sessionId (onUtterance, endSession) to the canonical call id. The server's slice-A alias layer (PR #2095) still backstops unknown ids; a client that sends the canonical id is the cutover — the server's MIRROR ROOM probe going silent is this slice's done-signal. Continues the CallManager-keyed-by-RoomId direction from PR #2005. Legacy tree carries 549 pre-existing tsc errors (the #83 path-drift debt, incl. this file's line-9 RustCoreIPC import); this change adds none. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Collapses the client-minted
session_idmirror on the server side: the aircroom_idis now THE canonical call/session key inmodules/live.rs.voice/register-sessionregisters the session underroom_id; the LiveKit room name (STT listener, ambient audio, agent batch, avatar video pump) is the airc room id.session_idis recorded in an alias map (session_id → room_id) onVoiceState. Every other session-scoped voice verb —end-session,on-utterance,speak-in-call,play-handle,inject-audio,ambient-add/inject/remove,poll-transcriptions— resolves incoming ids through ONE helpercanonical_call_idat its entry. No per-site logic.voice_service.rsuntouched: the canonical id is a room UUID, so itsUuid::parse_strpaths (register +video_viewers) receive a valid canonical id.Tests
modules/live.rsgets its (single) test mod, each with// what this catches:session_id == room_id) records no alias, resolver is identityon-utterancereturns the registered persona, legacy-addressedend-sessiontears down the canonical call and drops the aliascargo test -p continuum-core --lib --features metal,accelerate live::— 400 passed, 0 failed.Not in scope
Client/SDK cutover (slice B), typed
RoomIdforcall_id(slice C),call_server.rsinternals.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo