Skip to content

fix(room_io): release pending transcription when RoomIO closes - #8901

Open
Twiink wants to merge 1 commit into
livekit:mainfrom
Twiink:fix/transcription-close-before-room-ready
Open

Twiink wants to merge 1 commit into
livekit:mainfrom
Twiink:fix/transcription-close-before-room-ready

Conversation

@Twiink

@Twiink Twiink commented Dec 2, 2026

Copy link
Copy Markdown

Closing RoomIO before its room connects leaves pending transcription captures waiting for the first participant. A text-only agent can still hold a speech task in that wait after RoomIO has closed.

Wake the pending captures when the transcription output closes and check that the output is open before forwarding text. Captures still wait for the participant during startup.

The new RoomIO regression starts text capture before connection and then closes the room I/O. The original source leaves the task pending. With the change, the task returns and subsequent captures also return without publishing.

Validation on the submitted commit

  • pytest -q tests/test_room_io.py tests/test_translation_session.py (136 passed)
  • Ruff lint and format checks for both changed files
  • mypy for livekit.agents.voice.room_io._output

AI contribution disclosed. Codex reproduced, implemented, checked, and prepared the change at the account owner's request.

@Twiink
Twiink requested a review from a team as a code owner December 2, 2026 08:04
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@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: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

This branch has not been deployed

No deployments
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.

2 participants