Skip to content

fix(agents): preserve transcription item id#1902

Merged
toubatbrian merged 2 commits into
mainfrom
gaps-yells-mound
Jun 29, 2026
Merged

fix(agents): preserve transcription item id#1902
toubatbrian merged 2 commits into
mainfrom
gaps-yells-mound

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Testing

  • pnpm --filter @livekit/agents build:types
  • pnpm test agents/src/voice/agent_activity.test.ts
  • pnpm exec eslint -f unix agents/src/voice/agent_activity.test.ts
  • pnpm exec prettier --check agents/src/voice/events.ts agents/src/voice/agent_activity.ts agents/src/voice/agent_activity.test.ts .changeset/preserve-transcription-item-id.md

Ported from livekit/agents#6120

Original PR description

Fixes #6109

Summary

  • expose item_id on UserInputTranscribedEvent
  • pass through realtime input transcription item IDs when re-emitting user transcription events
  • add a regression test for item ID propagation

Testing

  • uv run pytest tests/test_agent_session.py -q
  • uv run pytest tests/test_agent_session.py::test_realtime_user_input_transcription_preserves_item_id -q
  • uv run ruff check livekit-agents/livekit/agents/voice/events.py livekit-agents/livekit/agents/voice/agent_activity.py tests/test_agent_session.py

@changeset-bot

changeset-bot Bot commented Jun 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 51f3112

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-fishaudio Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hedra Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugins-test Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugin-xai Patch

Not sure what this means? Click here to learn what changesets are.

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

@rosetta-livekit-bot rosetta-livekit-bot Bot requested a review from davidzhao June 28, 2026 19:13

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 0 potential issues.

Open in Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 0 new potential issues.

Open in Devin Review

@toubatbrian toubatbrian merged commit 3ca09e5 into main Jun 29, 2026
9 checks passed
@toubatbrian toubatbrian deleted the gaps-yells-mound branch June 29, 2026 02:11
@github-actions github-actions Bot mentioned this pull request Jun 29, 2026
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