Skip to content

Add item_id to UserInputTranscribed protobuf#1642

Open
dishasingh-21 wants to merge 1 commit into
livekit:mainfrom
dishasingh-21:add-item-id-protobuf
Open

Add item_id to UserInputTranscribed protobuf#1642
dishasingh-21 wants to merge 1 commit into
livekit:mainfrom
dishasingh-21:add-item-id-protobuf

Conversation

@dishasingh-21

Copy link
Copy Markdown

Fixes #1641
This PR adds item_id to the UserInputTranscribed protobuf message and propagates it through the remote session transport.

This change is a follow-up to livekit-agents#6109, which exposes item_id on UserInputTranscribedEvent so consumers can correlate interim and final transcription updates belonging to the same user utterance. While that change makes item_id available to local consumers, the remote session transport currently drops this information because the protobuf schema only includes transcript and is_final.

Without this update, applications using remote sessions cannot reliably correlate transcription updates, deduplicate interim transcripts, or react exactly once per utterance, leading to inconsistent behavior between local and remote deployments.

Changes

  • Add item_id to the UserInputTranscribed protobuf message.
  • Forward item_id through the remote session transport.
  • Preserve utterance correlation metadata across local and remote session boundaries.

Benefits

Remote session consumers can now:

  • Correlate interim and final transcripts belonging to the same utterance.
  • Deduplicate transcription updates using a stable identifier.
  • React exactly once per utterance.
  • Use the same logic across local and remote session deployments.

Related to livekit/agents#6109

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 50eea91

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@CLAassistant

CLAassistant commented Jun 23, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Add item_id to UserInputTranscribed protobuf message to preserve utterance correlation in remote sessions

2 participants