Repository navigation
feat(frontend): continue a Tavus conversation across competencies - #87
Merged
Merged
Conversation
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
FE-04 of
tavus-single-session-interview: the client side of the continuation. Two commits.chore: syncopenapi.jsonand the generated types with the merged api contract (live_conversation_idrequest field,continuation,conversation_id; noconversation_ttl_secondsyet, that is API-05/FE-06). Generated withbun run codegen, not hand-typed.feat:useInterviewSessioncontinues a live Tavus conversation across competencies.isValidStartResponseacceptscontinuation/conversation_idand rejects a malformed continuation or one combined with a handle;createProviderruns once across three competencies (players.length <= 1);/startcarrieslive_conversation_idonly from the'boundary'target while a handle is joined, never after reload, pause, tab-hidden, re-offer,retry()or embed re-entry;assertBoundary()is idempotent (racing inputs mint one ticket and one/end, a losing 409 unmutes and is a no-op); the mic is muted before/endand unmuted only at the steering ack orsteering_failed(resend once fortimeout/send_failed, otherwise the new competency ends astimeout); the'boundary'target neither entersconnectingnor publishes a handle; the Tavuscontinuedirective leavesconfirmDevices()only whencontinuationcame back. Pause is disabled while a boundary is in flight; the 300 s timer goes through the sameassertBoundary().Decisions
develop.errorscreen; a continuation for another conversation, or on a caller without a handle, is refused./startwith a fresh handle instead of a continuation, the old provider is stopped and the new handle published.Verification
RED first (23 of 31 new tests failed; the 8 that passed are negative guards that already held); 31/31 green. Mutations (send the id after pause, skip the mute, drop the in-flight guard) each fail tests and were reverted. Full Vitest 117 files / 2977 tests, typecheck, lint (0 errors) pass. gga passed. Not verified: coverage of this file after the final edits (CI gates it), real Tavus/Daily, Playwright (FE-07).