flaky-rain-27278
08/27/2025, 9:13 PMflaky-rain-27278
08/27/2025, 9:13 PM2025-08-27 14:06:12,749 - WARNING livekit - livekit::rtc_engine:453:livekit::rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume {"pid": 37051, "job_id": "AJ_cxyf9JAA9b9q"}flaky-rain-27278
08/27/2025, 9:14 PMflaky-rain-27278
08/27/2025, 9:15 PM1. LiveKit session close: By default, a room is automatically closed when the last non-agent participant leaves. Any remaining agents disconnect. You can also end the session manually.How does LiveKit know what is an agent vs not if we aren't using the OOTB AgentSession infra? Ideally we'd like to dodge this timeout if we can.
refined-appointment-81829
08/27/2025, 9:21 PM(@jobID:"AJ_cxyf9JAA9b9q") OR (@roomID:"RM_vRxhnbFveovk") was an agent deployed to a room that did not have a participant? Looks like agent leaves because there is no non agent participants in the room.refined-appointment-81829
08/27/2025, 9:22 PMagent=true in its tokenflaky-rain-27278
08/27/2025, 9:23 PMrefined-appointment-81829
08/27/2025, 9:23 PMrefined-appointment-81829
08/27/2025, 9:23 PMflaky-rain-27278
08/27/2025, 9:23 PMflaky-rain-27278
08/27/2025, 9:23 PMflaky-rain-27278
08/27/2025, 9:24 PMrefined-appointment-81829
08/27/2025, 9:24 PMflaky-rain-27278
08/27/2025, 9:24 PMdispatch = await lkapi.agent_dispatch.create_dispatch(
CreateAgentDispatchRequest(
agent_name='Orin', room=room_name, metadata=json.dumps(metadata)
)
)refined-appointment-81829
08/27/2025, 9:24 PMflaky-rain-27278
08/27/2025, 9:30 PMempty_timeout into their token generation step which will create the room when they join. Then when the agent joins the existing room the timeout is already set, but it also doesn't matter since the user is already in there.
Otherwise, when our agent decides to manually dispatch itself into a room and wait for the user to join, we should create the room (if not exists) and set the empty_timeout when we create the room. Then we should dispatch the agent to the newly created room.
I think that makes sense? lolbillowy-psychiatrist-32507
08/28/2025, 2:30 PMrefined-appointment-81829
08/28/2025, 2:35 PMctx.delete_room()billowy-psychiatrist-32507
08/29/2025, 5:48 AMbillowy-psychiatrist-32507
08/29/2025, 8:15 AM