Files
romm/frontend
zurdi fb2b34aa5d fix(player): hold every save before it goes, and drop it once it lands
code-review xhigh findings.

Holding the bytes was the tick's job, so the paths that skipped the tick
skipped it too: Save & Quit and the in-game Save button lost the save outright
when the upload failed, and told the player it had been kept. And a capture the
tick failed on stayed behind after a later save succeeded, so the app shell
uploaded it afterwards as the newest version in the slot, rolling the player
back. The hold now lives in the write itself, after the guards, so a voided
write holds nothing and a write the server takes leaves nothing behind. The
notices are gated on what is actually held.

Save & Quit also handed the core's own view of the SRAM to the upload instead
of a standalone copy.

Alongside:

- The store gives up when another tab holds an upgrade off, rather than
  waiting on an event that never comes and wedging every later pass.
- A drain in flight when the shell goes cannot arm a retry that outlives it.
- One pass fetches a rom once however many of its captures it is carrying.
- The toast host looks at the screen when it mounts, not only when it changes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QTsTgdoBinvvxzXeLUjBmV
2026-09-18 03:22:32 +02:00
..
2026-05-30 20:53:52 -04:00
2026-07-26 14:14:07 -04:00