Does removing the agent from room, closes the enti...
# ask-ai
a
Does removing the agent from room, closes the entire room. I am observing this upon a successful warm transfer. I am removing the agent participant from the room and the entire call ends.
t
Thanks for reaching out, nidhish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I want to assure you that when you remove a participant from a room in LiveKit, the entire room doesn’t close right away. The room stays open, and only the participant you specified gets disconnected. That said, the room might close after a little while if it becomes empty and the
departure_timeout
setting kicks in. By default, this timeout is set to 30 seconds. So, if you notice the room closing after removing the agent, it’s likely because of this timeout. If you have any more questions or need a bit more help, please don’t hesitate to ask—I’m here to support you! Sources: Managing rooms | LiveKit Docs | Job lifecycle | LiveKit Docs | Managing participants | LiveKit Docs | Rooms, participants, and tracks | LiveKit Docs | pkg/service/roommanager.go