A session whose heartbeat went stale was only torn down when a new claim
found every container of its platform held, so a player who left without
the pagehide release landing kept the emulator running. A scheduled task
now sweeps every configured container and hands stale sessions to the
existing abandoned-session teardown, which is made public for it.
Volume, mute, save-state, load-state and swap-disc now carry the claim's container and stamp, so a replaced tab or a second pool tab cannot drive another session. The claim resolver moves from the endpoint into handler/streaming/access.py, and the draining and occupied strings get real translations in every locale.
One forgetClaim/enterStream path in Stream.vue, one emulatorKey/emulatorLabelFrom home, the heartbeat compare-and-set via same_claim, and test helpers for drains, stubbed stops, deferred claims and 409s.
Leaving mid-claim unmounts the view, so a 202 held by the save-pull wait landed with nothing left to release it. A named join now applies the same platform check as the unnamed walk, emulatorLabel ignores prototype members, and the busy-pool 409 reads its snapshots concurrently.
A desktop re-claim leaves the last claim's notice in place, and a pool can hold one per container, so a stamped poll or heartbeat could show another claim's ended-by and reason.
Until the 202 names the claim, a session-ended notice cannot be matched to it, so notices that arrive in flight are held and the one naming the claim is replayed.
A re-claim of the same container keeps its key, so a session-ended notice or a status reply for the replaced claim ended the one that took its place. A poll with no stamp yet could also enter another tab's room once its reply landed after the 202.
The exit writes the save dump before it answers, so an answer without a state is as final as one with. The broker's outcome now says whether it settled, and the no-change release test covers only the answered case, which is what its name says.
A drain covers every teardown, including a desktop release that never saves, so the 409 message and the desktop claim's note on it claimed a save that may not be running.
The test named a claim re-taken on the same container but only sent an invented stamp, so it now takes the container back and polls with the first claim's stamp.
The status poll carries the claim's stamp once the 202 lands, so it can only report this tab's own session and the container it echoed back had nothing left to check.
With one container per platform a second tab re-claims the same container, so the container alone cannot tell a tab its own launch-ready from the claim that replaced it.
A webstation exit that timed out or failed may still be writing its save dump, so taking its first answer as final could leave the archive uncollected. The stop now reports whether the broker answered, and only an answered exit or a confirmed save-and-exit takes one fetch. The claim test now makes a real claim while the pull runs.
The drain marker covers every teardown, including a desktop release and an exit without saving, so the busy notice on the player and desktop claimed a save that may not be running.
The upload core picker deduped states' emulators by the raw id, so play and Play were two options both labelled Play! though the backend treats them as one emulator.
The backend matches a save's emulator case-insensitively, so states tagged Play and play belong to one emulator, but the strip split them into two groups both headed Play!.
Untranslated streaming strings on this branch ship as the English text so translators pick them up in one pass, like the neighbouring desktop-error-occupied.
With one container per platform a second tab re-claims the same container, so only the stamp tells a loading tab that the running session is no longer its own.
The desktop view takes its room from the claim POST and re-claims on reload, and the status poll never answers for a desktop, so the stored room was a dead write.
Without a container, the lookup raised 403 when another player held the platform's only session, before the stamp check could read the takeover as a gone claim. A stamped call now treats any failed lookup as that claim being gone, as the named path does.
Save-and-exit went through the release route's resolution, which ends whatever a named container holds, so naming a shared container could save and kill a desktop or another platform's game. A release still ends anything named; save-and-exit now matches only a game of the path's platform.
A per-emulator broker acks DELETE /launch before the emulator has flushed its saves, and a blocking save-and-exit that timed out or failed may still be killing it, so one answer from those pulls could miss the session's saves. Only a webstation exit, which answers once its dump is written, and a confirmed blocking save-and-exit take the first answer as final.
The repo caps a comment at two lines and a docstring at one sentence plus Args and Returns. Several comments and docstrings this branch wrote or edited ran to three lines or more, so they are tightened, with parameter notes moved under Args.
The backend holds the drain marker through every teardown, including a desktop release and an exit without saving, so the admin panel told an admin a save was running when none was.
The backend keys its display names in lowercase and lowercases the id before looking it up, while the store looked up the raw id, so a mixed-case configured emulator got its name on the Play button and its raw id on save chips.
The desktop claim's 409 carries the rom_name of the session in the way, as a game claim's does, and the desktop showed only a generic in-use message while its test claimed to name the game. The test's i18n mock now keeps params so the name is asserted.
Views left mounted answered the next test's visibilitychange, so the recovery test's status poll assertion held whether or not the view under test polled. It now asserts a single poll.
The player's own release, heartbeat and unload paths now name the container they claimed, so it is no longer only an admin ending someone else's session that sends it.
The ended notice carries the reason given, which the game view shows under its headline and the desktop dropped, leaving its comment to promise a reason the admin never saw.