Skip to content

Finalize transcript entries on explicit completion markers - #56

Open
robinandeer wants to merge 1 commit into
mainfrom
codex/transcript-turn-completion
Open

robinandeer wants to merge 1 commit into
mainfrom
codex/transcript-turn-completion

Conversation

@robinandeer

Copy link
Copy Markdown
Collaborator

Transcript entries currently become final only when a newer turn from the same speaker arrives. A completed last reply can therefore remain unfinished and stay hidden from final-only callbacks.

Honor explicit final: true markers across the core SDK and React transcript hooks. For example, “Your appointment is at 3 p.m.” becomes a final entry when its completion marker arrives, without waiting for another assistant reply. Duplicate markers and late deltas cannot reopen a finalized entry; malformed markers are ignored, and older workers retain the existing next-turn fallback.

Immediate completion requires the worker to emit these markers. This change uses the existing transcript IDs and final field.

Validation:

  • All 114 package tests passed, including transcript parsing/accumulation and the actual LiveKit Room event → SDK callback path.
  • Lint, core/React builds, and core/React typechecks passed.
  • Replayed worker messages through the SDK for completed turns, interrupted turns, and interruption without completion.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
avatars-playground Ready Ready Preview Oct 12, 2026 5:06pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 598d271b Deployed Oct 12, 2026 by vercel[bot]
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