Skip to content

Add room_id to SimulationRun.Job#1559

Open
Ocupe wants to merge 3 commits into
mainfrom
jonas/agent-sim-job-room-session-id
Open

Add room_id to SimulationRun.Job#1559
Ocupe wants to merge 3 commits into
mainfrom
jonas/agent-sim-job-room-session-id

Conversation

@Ocupe
Copy link
Copy Markdown

@Ocupe Ocupe commented May 13, 2026

This pull request introduces a minor update to the simulation job structure, enabling consumers to link a simulated session directly to its corresponding room session. The primary change is the addition of a new room_id field to the SimulationRun.Job structure, along with the necessary supporting code and documentation.

Simulation Job Structure Enhancements:

  • Added a room_id field to the SimulationRun.Job struct in livekit_agent_simulation.pb.go to store the ID of the room session associated with the job. This allows consumers (such as dashboards) to reference the room session directly.
  • Implemented a GetRoomId method for the SimulationRun.Job struct to provide safe access to the new room_id field.

Protobuf and Documentation Updates:

  • Updated the protobuf field descriptors and raw description constants to include the new room_id field, ensuring proper serialization and code generation. [1] [2] [3]
  • Added a changeset entry documenting the addition of room_id and its purpose for consumers. (.changeset/agent-sim-job-room-session-id.md)

Lets consumers link a simulated session to its corresponding room
session rather than only surfacing the simulation job id. Backend
needs a follow-up to populate the field; existing readers default to
"" until then.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 13, 2026

🦋 Changeset detected

Latest commit: cd68259

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

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Minor
@livekit/protocol Minor

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 Bot and others added 2 commits May 13, 2026 12:16
Aligns with the existing room_id naming used elsewhere in this proto
(e.g. Scenario.CreateFromSession.Request).
@Ocupe Ocupe changed the title Add room_session_id to SimulationRun.Job Add room_id to SimulationRun.Job May 13, 2026
@Ocupe Ocupe requested a review from theomonnom May 13, 2026 12:20
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.

1 participant