icy-cpu-74166
10/28/2025, 7:31 PMtall-airline-16756
10/28/2025, 7:31 PMtall-airline-16756
10/28/2025, 7:32 PMdisconnectReason: "CLIENT_INITIATED" you’re seeing in the room_closed event payload. This simply means that the disconnection was intentionally triggered by the client. In other words, a participant chose to leave the room by calling the Room.disconnect() method. So, it’s not something caused by LiveKit or the server, but a deliberate action from the client side. I hope this helps clear things up!
Sources: Sources/LiveKit/Protos/livekit_models.pb.swift | Rooms, participants, and tracks | LiveKit docs | Connecting to LiveKit | LiveKit docs | lib/src/proto/livekit_models.pbenum.dart | livekit-rtc/livekit/rtc/_proto/participant_pb2.pyiicy-cpu-74166
10/28/2025, 7:59 PMtall-airline-16756
10/28/2025, 8:00 PMRoom.disconnect() method automatically in some cases? Also, if you have any logs or details about what the users were doing during the call, that might help us see if they disconnected manually. I'm here to help you figure this out!icy-cpu-74166
10/28/2025, 8:08 PMtall-airline-16756
10/28/2025, 8:08 PMCLIENT_INITIATED. This usually means that either the user or your LiveKit agent intentionally triggered the disconnection by calling Room.disconnect(). Looking at the sequence of events in your logs:
• The participant sip_9042464646 disconnected at 18:30:08,544.
• The room was then fully disconnected at 18:30:38,790, which matches the agent's log about shutting down the session and processing the recording.
It seems like your LiveKit agent initiated the room disconnection after the participant left, probably as part of its designed behavior to tidy up or wrap up the session. If your agent is set up to disconnect the room when all participants leave or under certain conditions (like silence detection), this would explain what happened.
If you'd like, I’m here to help you dig deeper into the logs or double-check the agent’s behavior—just let me know!
Sources: livekit-android-test/src/test/java/io/livekit/android/room/RoomMockE2ETest.... | Agent Testing & CI/CD | livekit/livekit_composite | DeepWiki | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... | Connecting to LiveKit | LiveKit docs | livekit-agents/livekit/agents/voice/room_io/room_io.py