mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
The launch write optimistically mutated the shared rom_user but was fire-and-forget, so a network/authorization/server failure produced an unhandled rejection while the client kept status values that were never persisted. Introduce a shared recordLaunch() helper that snapshots the fields, applies the optimistic update, and on failure reverts them and logs instead of leaving the rejection unhandled. Use it in all three v2 players (EmulatorJS, Ruffle, Stream) so the behavior is consistent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>