```2025-07-04 18:08:13.409 2025-07-04 12:38:13,40...
# ask-ai
b
Copy code
2025-07-04 18:08:13.409	
2025-07-04 12:38:13,408 - DEBUG livekit.agents - closing agent session due to participant disconnect {"participant": "participant_identityZ7OSJmWbqH", "reason": "CLIENT_INITIATED", "pid": 182, "job_id": "AJ_XysF6dp5ACD2"}
	2025-07-04 18:06:23.959	
2025-07-04 12:36:23,958 - INFO voice-assistant - user state change from listening to away {"pid": 182, "job_id": "AJ_XysF6dp5ACD2"}
when does participant go from listening to away and why did it happen by itself?
t
Thanks for reaching out, Mohammed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The participant's state changes from "listening" to "away" due to user inactivity after a specified timeout period. This is triggered by a user away timer, which is set when both the user and agent are in the "listening" state. If the user remains inactive for the duration defined by the
user_away_timeout
setting, the system automatically updates the user's state to "away." Sources: GitHub::livekit::agents | livekit-agents/livekit/agents/voice/agent_session...