Files
romm/backend/handler
Georges-Antoine Assi 53ac1d9711 fix(scan): announce a restored rom from the platform loop
The platform sync clears `missing_from_fs` before the batch loop runs, so
a rom being scanned can no longer tell that it was missing, and the fold
left the skip path (which could tell) unreachable for a quick scan. A rom
whose file came back byte for byte therefore emitted nothing and kept its
stale badge. Collect the restored roms from the snapshot the loop already
takes, for the ones it visits as well as the ones it skips.

Cleanups on the same paths:
- hoist the quick reconcile above the metadata prelude it never reads,
  which was a config file parse and a tag parse per rom
- drop the unreachable quick clause from `_should_hash_incrementally`:
  `refresh_rom_files` owns that policy
- drop `RomFilesRefresh.files`, which nothing reads
- take the refresh lock without a guard that had nothing to protect
- fold the single-caller upload destination helpers into one
- give "a quick scan needs no metadata source" one home, and read the
  refresh title from the key rom.json already owns

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-03 20:32:30 -04:00
..
2025-12-07 12:19:13 -05:00