Skip to content

Add cloud connection and send server info message to connected clients#826

Open
eloff wants to merge 31 commits intomainfrom
dan/fg-13742-send-server-info-message-to-connected-clients
Open

Add cloud connection and send server info message to connected clients#826
eloff wants to merge 31 commits intomainfrom
dan/fg-13742-send-server-info-message-to-connected-clients

Conversation

@eloff
Copy link
Contributor

@eloff eloff commented Jan 22, 2026

Changelog

None

Docs

None

Description

Everything is behind the unused agent (now renamed cloud feature), so I think we don't have backwards compatibility concerns, nor does merging this tie our hands or introduce risk of breaking user code.

This PR adds a CloudConnection and related types. It connects to the livekit room, listens for participants joining, and sends the server info message.

Untested, other than it runs and connects to livekit successfully. It needs the auth and device beacon to be able to test this in the app.

Mostly this is an adaption / simplification of code from our agent prototype.

The Dockerfiles and CI builds need a LOT of TLC to get things working with LiveKit and the libwebrtc crate and C++ compiling that it does, I'm in the process of splitting that work out here: #832

eloff added 7 commits January 20, 2026 17:12
- Updated the `connect_session` method to return both the `CloudSession` and the `UnboundedReceiver<RoomEvent>`.
- Modified the `run` method to handle the new return type and pass the room events to `listen_for_room_events`.
- Removed the `room_events` field from `CloudSession` as it is now managed externally.
- Adjusted related methods to accommodate these changes, ensuring proper handling of room events during the session lifecycle.
@eloff eloff requested review from ericmlujan and gasmith January 22, 2026 00:13
@linear
Copy link

linear bot commented Jan 22, 2026

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants