numerous-vr-95901
11/04/2025, 5:17 PMparticipant_connected event when running with console command. However, when I run via LiveKit Cloud this events are no longer firing when connecting via the LiveKit react-native starter app or my own app. I've spent a lot of time trying to debug with no luck, tried searching through threads but unclear what's different about my implementation. When my agent its noting there are no existing participants logging the bottom of these two lines:
if len(room.remote_participants) > 0:
logger.info("Participants already connected, loading memories now")
await self._load_memories()
else:
logger.info("No participants yet, will load memories when participant connects")
Then there's this hook that's registered in my entrypoint:
@ctx.room.on("participant_connected")
def on_participant_connected(participant):
logger.info(f"Participant connected: {participant.identity} (sid: {participant.sid})")
But that's only firing in my local deployment. Finding it difficult to understand if this is an issue with my agent or client code.refined-appointment-81829
11/04/2025, 6:43 PMnumerous-vr-95901
11/04/2025, 6:47 PM"livekit-agents[hume]>=1.2.15",
"livekit-agents[anthropic,elevenlabs,openai,silero,turn-detector]~=1.2",
"livekit-plugins-noise-cancellation~=0.2",
and clientside:
"@livekit/components-react": "^2.9.15",
"@livekit/react-native": "^2.9.3",
"@livekit/react-native-expo-plugin": "^1.0.1",
"@livekit/react-native-webrtc": "^137.0.2",numerous-vr-95901
11/04/2025, 8:24 PMlively-winter-88668
11/05/2025, 11:34 AMconsole has a simplified lifecycle. It depends how your agent is structured and we have examples that show participant_connected but if you are using the starter agent, the remote participant should always show as already present in the room after the session has started (so, the connected event would not fire).rapid-judge-7554
11/06/2025, 6:45 AMtrack_subscribed , participant_connected they just don't work all the time across environments
sometimes they're not even firednumerous-vr-95901
11/10/2025, 6:24 PM