Skip to content

fix(sim): keep the current speed when a stream opens without a speed query - #3

Merged
and2049 merged 1 commit into
devfrom
fix/stream-keeps-speed
Oct 19, 2026
Merged

and2049 merged 1 commit into
devfrom
fix/stream-keeps-speed

Conversation

@and2049

@and2049 and2049 commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Opening /api/sessions/{key}/live-simulation/stream without ?speed= reset a running simulation to 1x, so a companion that only observes the stream silently undid a speed chosen through the desktop toggle or the new /speed route. The stream now only changes speed when a query is given and otherwise paces frames at the simulation's current speed.

Adds LiveSimulationRegistry::speed, a unit test for it, and an API test that starts at 4x, opens the stream without a query, and checks the clock still advances at 4x.

@and2049
and2049 merged commit 7da5124 into dev Oct 19, 2026
3 checks passed
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