Files
romm/backend/handler/streaming
Georges-Antoine Assi ee14785ad6 fix(streaming): restore only broker-pulled save archives natively (#5724)
* fix(streaming): restore only broker-pulled save archives natively

A device client (Argosy with Eden or Azahar) can sync its own zip under the
emulator name a streaming container uses. RomM treated any .zip from that
emulator as a native broker archive and pushed it as-is, so the broker
refused the restore with a 422 for members outside its save subtrees.

Only archives RomM filed from a broker pull (*.saves.zip) restore natively
now. A client zip is skipped by the default launch and, when picked, goes
through the broker's import path where it accepts saves.

Fixes #5268

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(saves): keep a broker archive's suffix through a rename

Addresses Greptile's review on #5724: renaming a broker-pulled save to
another .zip dropped the .saves.zip marker, so the next launch stopped
restoring it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:43:41 -05:00
..