fix: remove wait_for_participant — room not connected in rtc_session mode

In livekit-agents v1.x @server.rtc_session() pattern, ctx.room is not
yet connected when entrypoint is called. session.start() handles room
connection internally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-28 21:15:37 -08:00
parent 2112445191
commit 4d47c6a955
1 changed files with 0 additions and 3 deletions

View File

@ -176,9 +176,6 @@ async def entrypoint(ctx: JobContext) -> None:
tts=tts, tts=tts,
) )
# Wait for the user participant to connect before starting
await ctx.wait_for_participant()
await session.start( await session.start(
agent=IT0VoiceAgent(), agent=IT0VoiceAgent(),
room=ctx.room, room=ctx.room,