From c290332a1e62f5e3a44cc417c1966c733ba70b7a Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sun, 22 Feb 2026 06:49:44 +0200 Subject: [PATCH] fix: Disable close_on_disconnect to keep session alive E2EE key setup may briefly appear as participant disconnect. Keep session alive to allow audio to flow once keys are settled. Co-Authored-By: Claude Opus 4.6 --- voice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voice.py b/voice.py index 73d5c83..81f16df 100644 --- a/voice.py +++ b/voice.py @@ -290,7 +290,8 @@ class VoiceSession: agent = Agent(instructions=VOICE_PROMPT) io_opts = room_io.RoomOptions( participant_identity=remote_identity, - ) if remote_identity else room_io.RoomOptions() + close_on_disconnect=False, + ) if remote_identity else room_io.RoomOptions(close_on_disconnect=False) await self.session.start( agent=agent, room=self.lk_room,