Skip to content

Conversation

@real-danm
Copy link
Contributor

@real-danm real-danm commented Oct 23, 2025

added a select themed with the standard form to select from available regions.

@rektdeckard
Copy link
Member

rektdeckard commented Oct 23, 2025

A select would be nice if the property is not provided! With so much remote work I don't think it's safe to assume closest region to host machine. Can regions be listed by the client or does that API need adding?

@real-danm
Copy link
Contributor Author

Can regions be listed by the client or does that API need adding?

i think we can use the 'settings' api offered by cloud agents to return the currently enabled regions

} else {
// we shouldn't ever get here, but if we do, just default to us-east
logger.Debugw("no available regions found, defaulting to us-east. please contact LiveKit support if this is unexpected.")
region = "us-east"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't default region be empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm i wasn't sure here. if it's empty then whichever region picks it up based on dns of the api call would deploy it. not sure if that is better or to use us-east

Copy link
Member

@rektdeckard rektdeckard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Can you add the flag to initAgent too? Just the flag definition needs to be there, we forward everything to createAgent.

@real-danm
Copy link
Contributor Author

update initAgent

added this to initAgent flags, hopefully this is what you need? 47fba4d

@rektdeckard
Copy link
Member

@real-danm yep, thank you!

@real-danm real-danm merged commit 9002fc1 into main Oct 28, 2025
9 checks passed
@real-danm real-danm deleted the dan/agent-region branch October 28, 2025 02:43
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.

4 participants