Skip to content

Conversation

@1egoman
Copy link
Contributor

@1egoman 1egoman commented Oct 23, 2025

If this behavior is still requested by a user, it can be replicated by calling await agent.waitUntilAvailable(); after await session.start().

Because the call was made to make Session no longer agent specific, I think this change makes sense, though it does to me seem unfortunate that a user would have to do both of those steps when it is expected to be a relatively common path.

Maybe there's a middle ground like checking if an agent was dispatched as part of the token payload and THEN run this same check, but even that has some amount of magic to it which may not always be what people want in every scenario, so idk.

If this behavior is still required, it can be replicated by calling
`await agent.waitUntilAvailable();` after `await session.start()`.

Because the call was made to make `Session` no longer agent specific, I
think this change makes sense, though it does to me seem unfortunate
that a user would have to do both of those steps. Maybe there's a
middle ground like checking if an agent was dispatched as part of the
token payload and THEN run this same check, but even that has some
amount of magic to it which may not always be what people want in every
scenario, so idk.
@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: 59e8c58

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@livekit/components-react Patch
@livekit/component-example-next Patch
@livekit/components-js-docs Patch
@livekit/component-docs-storybook Patch
@livekit/components-docs-gen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

size-limit report 📦

Path Size
LiveKitRoom only 6 KB (0%)
LiveKitRoom with VideoConference 32.23 KB (0%)
All exports 42.53 KB (-0.01% 🔽)

@1egoman 1egoman requested a review from lukasIO October 23, 2025 15:21
@1egoman 1egoman marked this pull request as ready for review October 23, 2025 15:21
@lukasIO
Copy link
Contributor

lukasIO commented Oct 23, 2025

I agree that checking for dispatch might actually be the most expected behaviour. It doesn't really solve the case where users dispatch agents outside of the token scope, but expecting an agent to appear if it's part of the token scope seems reasonable

@1egoman
Copy link
Contributor Author

1egoman commented Oct 24, 2025

Cool, I will update this change to have that behavior!

@1egoman
Copy link
Contributor Author

1egoman commented Oct 24, 2025

Closing in favor of #1225

@1egoman 1egoman closed this Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants