From d08a4e1fcbb353354297d2708e8d379c2db35783 Mon Sep 17 00:00:00 2001 From: Shane Date: Sat, 22 Aug 2026 18:54:22 -0400 Subject: [PATCH] fix: keep LiveKit rooms alive so agent survives reconnects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set room.empty_timeout to 86400 (24h) in livekit.yaml. Previously the default 300s timeout destroyed the room when all participants left, which killed the agent job and left no worker registered for the next join — causing 'assistant not ready retry' on tab reopen. --- livekit.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/livekit.yaml b/livekit.yaml index a3e1f01..76a6d7d 100644 --- a/livekit.yaml +++ b/livekit.yaml @@ -6,3 +6,10 @@ rtc: keys: devkey: devsecret + +# Keep rooms alive for 24h — the agent stays resident so reconnections +# don't require a fresh dispatch. Without this, LiveKit destroys the room +# after empty_timeout (default 300s), kills the agent job, and the next +# join finds no worker registered ("assistant not ready retry"). +room: + empty_timeout: 86400