* chore(vue): devs can use vite vue dev tools
* pr-ready: code-review
Keep the Vue DevTools plugins out of Storybook, whose builder merges the
app's Vite plugins, and list the plugin in the frontend architecture doc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(vue): load Vue DevTools only when DEV_VUE_DEVTOOLS is true
The overlay sits on every dev page, including local Playwright runs
against npm run dev, so developers opt in from .env as with DEV_PWA.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(saves): convert Nintendo DS saves through sigil
Sigil now converts a DS save between melonDS's raw file and DeSmuME's
.dsv, so a download with core= gets the file that emulator reads instead
of the stored one as is. DS moves from the native list to the platforms
sigil restores; like Saturn and Sega CD it carries no title id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): accept a single-file neutral unit as sigil names it, for DS and Game Boy
Sigil names a cart's single-file unit after the content, `{stem}.srm`, and
sets the unit format; the neutral check only took `save.raw` for DS and
`save.sram` for Game Boy, so a client pushing sigil's own unit got a 422.
A SINGLE unit's one file may now carry sigil's name on those platforms;
multi-file units and every other platform keep their names.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): name DS among the cartridges that take no companions
Sigil refuses companions on every cartridge platform, DS included now
that it converts DS saves, so the refusal says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(saves): convert Mega Drive, 32X, Master System and Game Gear saves through sigil
genesis_plus_gx and picodrive keep these carts' save RAM at the same
offsets but fill and size it differently. With sigil converting between
them, the four platforms move from NATIVE_SAVE_PLATFORM_SLUGS to
SIGIL_RESTORE_PLATFORM_SLUGS (sigil slugs genesis, 32x, sms, gamegear),
so a download with core= gets the file that core keeps. The companion
refusal message names the new cartridges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): accept the Sega cartridges' single-file neutral unit as sigil names it
Sigil names a Mega Drive, 32X, Master System or Game Gear unit after the
content, `{stem}.srm`. A SINGLE unit's one file may now carry that name,
as DS and Game Boy's may; RomM's `save.sram` still passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(saves): convert Game Boy Advance saves between emulators with sigil
GBA moves from the native-save platforms to the ones sigil reads at scan
time and restores for a core. The stored file doesn't load everywhere:
VBA Next keeps an EEPROM save at 128 KiB into a 136 KiB file, gpSP pads
every save to 128 KiB, and standalone mGBA appends the cart clock. The
scan stores the cart's save chip and clock in sigil_features, which sigil
uses to size a padded save. The tests that used GBA as their native
example now use SNES.
Needs a sigil pin with GBA collect and restore.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): accept a single-file GBA neutral unit as sigil names it
Sigil names a GBA cart's unit as it does a Game Boy's: the save alone as
`{stem}.srm`, or a clock cart's zip of `save.sram` and `clock.rtc`.
GBA now takes Game Boy's form, so the single file may carry sigil's name.
The clock-only form had no other platform left and goes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): pin sigil at the DS merge, and take only a plain file name as its single unit
Both SIGIL_VERSION pins move to baa96b8 (rommapp/argosy-sigil#22), the
first sigil commit with DS. _SIGIL_SINGLE is [^/]+\.srm, so a single unit
named with a folder in it is refused; test_neutral.py checks it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at the GBA merge
rommapp/argosy-sigil#24 is merged as 4980f69. Both SIGIL_VERSION pins
(Dockerfile, docker/Dockerfile) move from baa96b8 to that commit on
sigil's main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at the Mega Drive merge
rommapp/argosy-sigil#23 is merged as be0809d. Both SIGIL_VERSION pins
(Dockerfile, docker/Dockerfile) move from baa96b8 to that commit on
sigil's main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at 650b265
Both SIGIL_VERSION pins (Dockerfile, docker/Dockerfile) move from
be0809d to 650b265, sigil's main. It holds rommapp/argosy-sigil#23
(be0809d) and is the commit rommapp/romm#5758 pins, so the two
pull requests set the same value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at 650b265
Both SIGIL_VERSION pins (Dockerfile, docker/Dockerfile) move from
baa96b8 to 650b265, sigil's main. It holds rommapp/argosy-sigil#22
(baa96b8) and is the commit rommapp/romm#5758 pins, so the two
pull requests set the same value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at 650b265
Both SIGIL_VERSION pins (Dockerfile, docker/Dockerfile) move from
4980f69 to 650b265, sigil's main. It holds rommapp/argosy-sigil#24
(4980f69) and is the commit rommapp/romm#5758 pins, so the two
pull requests set the same value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): name no systems in the companion refusal
The message listed the cartridges that take no companions, so each
platform added to sigil's restores edited it, and the open save PRs
(#5643 to #5647) each edited it differently. It now says what holds for
every platform: companions go only on memory cards and volumes. All five
carry the same line, so they merge in any order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): name no systems in the companion refusal
The message listed the cartridges that take no companions, so each
platform added to sigil's restores edited it, and the open save PRs
(#5643 to #5647) each edited it differently. It now says what holds for
every platform: companions go only on memory cards and volumes. All five
carry the same line, so they merge in any order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): name no systems in the companion refusal
The message listed the cartridges that take no companions, so each
platform added to sigil's restores edited it, and the open save PRs
(#5643 to #5647) each edited it differently. It now says what holds for
every platform: companions go only on memory cards and volumes. All five
carry the same line, so they merge in any order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(saves): restore Sega cart saves through RomM's platform map and binding
From review: the Mega Drive, 32X, Master System and Game Gear tests mock
the binding, so a slug sigil doesn't take would still pass. A ROM on each
RomM platform now goes through stored_game and the real binding, and the
restored file is checked in the form sigil's genesis.md gives the core:
genesis_plus_gx without trailing 0xFF, picodrive's 32 KiB for Master
System and Game Gear. rom_game is the same helper in #5643 to #5647.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(saves): restore a DS save through RomM's platform map and the binding
From review: the DS tests mock the binding, so a slug sigil doesn't take
for DS would still pass. A ROM on RomM's nds platform now goes through
stored_game and the real binding, and the restored file is checked in
the form sigil's nds.md gives each core: DeSmuME's .dsv ends in its
122-byte footer, melonDS's .sav is the save. rom_game is the same helper
in #5643 to #5647.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(saves): restore a GBA save through RomM's platform map and the binding
From review: the GBA tests mock the binding, so a slug sigil doesn't take
for GBA would still pass. A ROM on RomM's gba platform now goes through
stored_game and the real binding, and the restored file is checked at the
size sigil's gba.md gives each core: gpSP 128 KiB padded with 0xFF, VBA
Next 136 KiB, mGBA the chip. rom_game is the same helper in #5643 to
#5647.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at ef9b51e
Both SIGIL_VERSION pins move from 650b265 to ef9b51e, sigil's main
since rommapp/argosy-sigil#30 merged, the commit rommapp/romm#5758
pins now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at ef9b51e
Both SIGIL_VERSION pins move from 650b265 to ef9b51e, sigil's main
since rommapp/argosy-sigil#30 merged, the commit rommapp/romm#5758
pins now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): pin sigil at ef9b51e
Both SIGIL_VERSION pins move from 650b265 to ef9b51e, sigil's main
since rommapp/argosy-sigil#30 merged, the commit rommapp/romm#5758
pins now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: MMagTech <mmagtech@Mac.home>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
* fix(igdb): let region_mode decide the localized title
get_igdb_preferred_locale ignored scan.priority.region_mode, so a rom
tagged (Japan) always got IGDB's ja-JP localized title, even with
prefer_config and us first in scan.priority.region. Under prefer_config
the configured regions now come first and the rom's own tags are the
fallback, matching the ScreenScraper handler since #4413. The default
prefer_rom_tags ordering is unchanged.
Fixes#5784
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(igdb): fold the region_mode note into one docstring sentence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Log a missing IGDB locale at debug: under prefer_config every ROM asks
for the first config locale, so a missing one is routine, not a warning.
Pin SCAN_REGION_MODE in the multi-region locale test instead of relying
on MagicMock's auto attribute.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Drop the IGDB-locale filter on the ROM's region codes; the final
lookup loop already skips codes IGDB has no locale for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: prose
Spell out the USA region in the prefer_config test docstring so it
does not read as the pronoun, untangle the fallback test docstring, and
finish the clipped Returns line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(metadata): share one region order across IGDB, ScreenScraper and LaunchBox
IGDB now tries every preferred locale in order, up to the first region
that uses the default title, instead of only the first. Under
prefer_config with [eu, jp], a (Japan) ROM whose game has no EU
localization gets the Japanese title again rather than the default.
preferred_region_codes in the filesystem base handler builds the region
order once. ScreenScraper, IGDB and LaunchBox all read it, so LaunchBox
artwork follows region_mode too, and uppercase config codes match the
ROM's tags for every provider.
European country codes map to IGDB's EU locale and ScreenScraper's ss
to the default title, so a (France) ROM no longer falls through to the
next configured region.
An unquoted no (Norway, Norwegian) in scan.priority.region or
scan.priority.language loads as false from YAML and crashed every IGDB
match. The config loader now turns it back into "no" and drops other
non-string entries with a warning.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(igdb): drop _string_codes and spell out the EU region codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
* fix(launchbox): read the YouTube id from watch URLs wherever v sits and without a fragment
A video URL with v after another parameter yielded no id, and a #t= fragment was kept as part of it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(launchbox): ignore a trailer URL that cannot be parsed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(metadata): share one YouTube id parser across LaunchBox, Demozoo and Pouet
LaunchBox now also reads ids from embed, shorts, live, /v/ and
youtube-nocookie links, and Demozoo and Pouet now accept URLs without
a scheme. Ids are checked against the 11-character format at parse time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
The dev setup creates frontend/assets/easyrpg with symlinks, and the image build
copies it into the context. It then collides with the real EasyRPG files at the
same path, and the last COPY step fails with 'cannot copy to non-directory'.
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(utils): show a playtime of just under an hour as 1h, not 60m
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* refactor(utils): drop the playtime rounding comment
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(utils): carry formatBytes sizes that round up to 1024 into the next unit
A size just under a unit boundary printed as "1024 KB" or "1024 MB" instead of "1 MB" or "1 GB".
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(utils): make the formatBytes carry test exercise the decimals argument
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(play): show the automatic Save synced toast at most once every 5 minutes
* fix(saves): let sigil decide when a Pokemon save is the same, ignoring scratch RAM
* pr-ready: code-review
* pr-ready: review-polish
* pr-ready: prose
* fix(play): hold SRAM changes in the browser and upload them once the game goes quiet
* fix(play): upload a held save before a state replaces it, and report only new snapshots
* pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: prose (code-review fixes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(play): leave a save a running session holds out of other tabs' sync passes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* build(sigil): pin ef9b51e
---------
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #5715, from the review findings posted after it merged:
- Inside a try that swallows errors, a call to a helper that returns an
error response was dropped, so its status went missing. The analyzer
now reads such a call in a "returned" mode that keeps the responses
the helper builds or returns and drops what it raises.
- A handler for http.client.HTTPException was treated as catching
FastAPI's HTTPException, since only the last name was compared. Handler
classes now resolve through the module's imports, so the 502 that
broker.request raises in webstation._cores_reply is kept.
- A declared raise inside a swallowing try no longer counts.
- Shorten the UNREADABLE_STATUS comment to two lines.
Claude-Session: https://claude.ai/code/session_011waFLFaNttxvn8EYtvLSwo
Co-authored-by: Claude <noreply@anthropic.com>
Replace mame.svg with a new cabinet icon and add fbneo.svg and fba.svg.
The SVGs take precedence over the existing fbneo.ico and fba.ico in the
icon manifest; the .ico files stay for clients that request them directly.
Claude-Session: https://claude.ai/code/session_011waFLJPYrfFiUWNZqa6BBY
Co-authored-by: Claude <noreply@anthropic.com>
* fix(frontend): send plain objects across the desktop bridge
The platform probe built each query's cores from the heartbeat store, so
the list was a Vue reactive Proxy. Electron's IPC cannot clone a Proxy,
so every probe batch failed with "An object could not be cloned", the
error was swallowed, and no platform ever read as supported. The native
Play button therefore never appeared in the desktop shell. A launch with
no chosen core passes the same kind of list and would have failed too.
Copy requests to plain JSON at the bridge boundary, for the probe and for
launch.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4edqZDrKTQMbEaLVUD
* docs(frontend): shorten the bridge copy comments
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4edqZDrKTQMbEaLVUD
* test(frontend): type the launch bridge fake and check the copied request
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4edqZDrKTQMbEaLVUD
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(users): delete a user who has play sessions on a device
On MariaDB, deleting a user whose play sessions name a device failed with
error 1452 once play_sessions had been rebuilt, as restoring a dump does.
The cascade clears device_id on rows of the user being deleted, and InnoDB
rechecks their user through the index that also holds device_id. The user's
devices are now deleted first, while the user still exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(users): force the play_sessions rebuild in the delete-user test
OPTIMIZE TABLE can defragment instead of rebuilding when innodb_defragment
is on (MariaDB 10.11), which would leave the index order unchanged.
ALTER TABLE ... FORCE always rebuilds. Addresses Greptile review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
* refactor(docker): supervise the container with s6-overlay
The init script was a hand-rolled supervisor: PID files, /proc polling, a
5s watchdog loop and a trap-based shutdown. Its shutdown wait was unbounded,
so a process that refused to exit stranded PID 1 and left the container up
and serving nothing, which no restart policy can detect.
s6-rc replaces it with a declared service graph. Ordering and readiness
gates that were sequential bash become dependencies, and the failure modes
become configuration:
- timeout-kill bounds SIGTERM before SIGKILL, and flag-timeout-killpg
escalates to the whole process group.
- S6_BEHAVIOUR_IF_STAGE2_FAILS=2 exits the container when a startup step
fails, so the restart policy retries instead of the container wedging.
- valkey gets --shutdown-on-sigterm force, so it stops refusing to exit
when the snapshot it writes on shutdown cannot be written.
A crashed service is now restarted on its own instead of taking the whole
container down. Its leftover children are swept first, because children
reparented from a hard-killed master keep holding its listening sockets and
would make every replacement fail to bind.
Optional services have no conditional mechanism in s6-rc, so they start,
check their environment variable, and take themselves down with s6-svc -O.
Running with a read-only root filesystem now needs /run mounted exec, since
s6 executes its generated stage scripts from there.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(docker): always start the RQ scheduler under s6
The s6 service carried over the four-flag ENABLE_SCHEDULED_* gate from the
init script, which #4033 has since removed on master. Since this branch
deletes that script, the fix would be lost on rebase.
Nothing else respects the condition: startup.py registers the netplay,
upload-tmp and zip-cache cleanups unconditionally, three more flags gate
periodic tasks absent from the list, and the watcher defers its rescans
through the scheduler. Any of those leaves jobs in the scheduler registry
with no process to run them, and a stuck delayed scan_platforms entry reads
to the concurrent scan guard as a scan already queued, refusing every
manual scan.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(docker): port master's init changes to the s6 services
Master reworked docker/init_scripts/init while this branch replaced it,
so carry those changes into the s6-rc services:
- Replace rq-scheduler with `rq cron` (romm-rq-cron) on tasks.cron_config.
- Add romm-rq-scan-worker (scans queue) and romm-rq-streaming-worker
(streaming queue, down unless config.yml enables streaming).
- Run every worker with --with-scheduler and the RomMRedis connection
class, passing the Redis URL through RQ_REDIS_URL so the password stays
off the command line, and read REDIS_SSL as a boolean.
- Bring gunicorn's flags in line: --no-control-socket, a private-range
FORWARDED_ALLOW_IPS default, 4 workers and a 65s keep-alive.
- Check the sync folder and SSH keys path in romm-init, and switch the
features off through the container environment when they're unusable.
- Accept the backend's truthy values for the watcher flags.
- Point the serving-layer guard tests at the gunicorn run script and
drop the PID-file tests, which guarded the bash watchdog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(docker): guard the s6-overlay service tree
Check that every service is in the user bundle, depends on something
that exists, and that every longrun has its finish sweep, kill timeout
and process-group flag. Also check that the dev entrypoint starts the
same RQ workers and cron scheduler as the image, since it keeps its own
launcher.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(dev): pass the image's RQ flags in the dev entrypoint
The dev image's RQ cron scheduler and workers ran without the RomMRedis
connection class, and the workers without --results-ttl, so they kept
redis-py's maintenance notification probe and RQ's default result TTL.
The s6 guard test now compares each rq command's flags with the image's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(docker): address Greptile review on the s6 service tree
- Cut the s6 script comments to two lines, keeping the reason each
helper exists.
- Compare the values of the dev entrypoint's RQ options with the
image's, not only their names, allowing for the dev image's path,
PID files and LOGLEVEL default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(docker): check every s6 service stays up after boot
The heartbeat only proves gunicorn and nginx came up. Enable both watchers
and require each longrun in the s6 tree to report up for 15s straight, so a
crashing or restart-looping worker, cron, valkey or watcher fails the job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(docker): enable streaming so its worker is checked too
The streaming worker turns itself off when streaming.enabled is false in
config.yml, which the services check read as a failure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The project was dropped in #5459 after 185 days without a push. It has
since shipped 16 releases (latest v2.5.1 on 15 Nov) with a Docker image,
so it meets the Community listing criteria again.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let the platforms filter exclude as well as include
The search filter drawer gains an Any/None toggle next to the platforms
select. `GET /api/roms` takes a new `platforms_logic` parameter ("any" or
"none"); "all" is rejected because a rom has one platform.
An exclusion keeps the grouped single-platform cache from answering, is
carried into the filter-values scope, round-trips through the URL, and
is stored on smart collections as `platforms_logic: "none"`. A platform
route always includes its own platform.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4icN79J4F1bZ15pmZG
* Rename the filter drawer's "Tags" heading to "Attributes"
The section holds genre, franchise, company, region, status and more,
with "Tag" as just one of its rows, so the heading read as if every row
were a tag. The platforms select joins it as the first row, and the rows
share one column grid so the selects line up even though the platforms
toggle has no "all" button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4icN79J4F1bZ15pmZG
* Fix three gaps in platform exclusion found in review
- A URL with platforms but no platformsLogic now includes them, so
following an inclusion link after an exclusion no longer keeps
excluding. Without platforms the logic is left alone, since it is
never written to the URL then.
- Smart collection criteria give the route's platform priority, as the
gallery request does, so a collection saved on a platform page never
excludes the games on screen.
- The drawer's Reset button resets the platforms toggle to Any.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4icN79J4F1bZ15pmZG
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(emulatorjs): expose download cache enable setting
* pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(config): move cache_limit under emulatorjs.cache and read config.yml strictly
emulatorjs.cache.limit replaces emulatorjs.cache_limit, which is still read
with a deprecation warning and is rewritten to the new key on the next save.
Every config.yml read now goes through one reader that exits with code 3 when
a parent block is not a dictionary (e.g. `netplay: true`), where get_nested
silently fell back to the default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(emulatorjs): clear every EmulatorJS cache and keep nightly's cache size
The clear-cache dialog now also deletes EmulatorJS-bios (4.2.3) and
EmulatorJS-Cache (nightly), which kept serving downloaded files.
Nightly turns EJS_CacheLimit, a per-file byte cap in 4.2.3, into its total
cache size in MB, so a limit under 1 MiB gave a 0 MB cache. Passing
cacheMaxSizeMB explicitly keeps nightly at its own 4096 MB default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(utils): drop get_nested
The config loader reads config.yml through its own strict reader now, so
get_nested has no callers left.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ra): hash an arcade set by its archive, not the CHD beside it
RetroAchievements identifies an arcade game by its set's name. A folder
holding a set and its disc was hashed by the CHD, which is named after the
disc (gdl-0018.chd beside azumanga.zip).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Pass the arcade set's archive to RAHasher directly. RAHasher on Linux
does not expand a /* wildcard, so the arcade hash of <folder>/* is the
MD5 of an empty name. Prefer the archive named after the folder so a
larger BIOS or parent zip beside it does not win.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: plain-prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
RetroAchievements' Arcade has sets for games Flycast runs (Atomiswave,
NAOMI, NAOMI 2 and NAOMI GD-ROM) and for Gaelco games FinalBurn Neo runs.
Since #5273 those folders have slugs of their own with no RetroAchievements
console, so their games get no hash.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ui): stop the search gallery shifting against the other tabs
With classic scrollbars, the document-scrolled tabs (Home, Platforms,
Collections) lose the scrollbar's width to the document scrollbar, but
the gallery handed its own scrollbar's width back to the top bar and the
content. Search therefore laid out 10px wider on the right, moving the
nav pill, user menu, divider and toolbar on every tab switch.
Drop that compensation so the gallery's scrollbar takes the same space a
document scrollbar does, and have the document-scrolled tab pages always
reserve the gutter so a short page matches a long one and the gallery.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu
* refactor(ui): scroll the gallery with the page like the other tabs
GalleryShell scrolled inside its own full-viewport panel, unlike Home,
Platforms and Collections, which scroll the document. The two layouts
needed scrollbar-width bookkeeping to line up and still drifted apart.
RVirtualScroller gains an opt-in `pageScroll` mode that windows its rows
on the document's scroll, takes its full height in the page flow, and
lets wide list rows widen it so sticky chrome follows a sideways scroll.
GalleryShell uses it, pins its toolbar on the page scroll, and fixes the
AlphaStrip, back-to-top button and floating dock to the viewport. The
body overflow lock, the published scrollbar width and the phone bottom
spacer go away; the layout's own bottom padding clears the tab bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu
* test(ui): cover the page offset in RVirtualScroller's pageScroll mode
Places content above the list and grows it, checking that the rendered
rows and the scrollToIndex target follow the list's page offset.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu
* fix(ui): count only the visible part of a virtual list that starts mid-viewport
viewportRange added the full viewport height to the clamped top, so a
list starting partway down the screen (a gallery under its page header)
counted rows still below the fold as visible, and the gallery fetched
and rendered them. Measure the bottom from the real viewport edge, and
report an empty range when the list lies wholly outside it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu
* docs(ui): shorten the scrollRestoration header comment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(auth): use the OIDC picture claim as the user's avatar
On each OIDC sign-in, a user with no avatar, or one synced from the
provider earlier, gets the picture claim stored as their avatar. An
uploaded avatar is never replaced. The download goes through the
SSRF-guarded client (the configured provider's origin may reach a LAN
address), is capped at 5 MB, must sniff as a supported image, and any
failure is logged without blocking the sign-in.
Closes#4297
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(auth): address review on the OIDC avatar sync
Addresses Greptile's review on #5730:
- ask the UserInfo endpoint when the ID token has no picture claim
- keep an avatar uploaded while the picture downloaded
- allow only the OIDC provider's origins to reach private addresses
- trim docstrings and narrow await_args in the callback test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(auth): type the OIDC avatar test helpers for mypy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Bound the OIDC picture download with an overall deadline, trust the
OIDC CA bundle, catch hostname encoding errors so sign-in never 500s,
and set the synced avatar with a conditional update so a concurrent
upload wins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish
Type the pytest fixtures and helpers in the OIDC avatar tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(auth): remove the synced OIDC avatar when the user uploads one
Once avatar_path points at the uploaded avatar.<ext>, the sync never
touches the user's avatar again, so the old oidc-avatar.<ext> file
would otherwise stay on disk for good.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Each failed password, token or OIDC sign-in now logs one warning line,
auth.login_failed method=... reason=... username=... ip=..., so tools
like fail2ban and CrowdSec can detect username enumeration as well as
brute force. A name that matches no account is logged as a short keyed
hash, since it may be a password typed in the wrong box.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A file below no category folder is part of the game, so the file schema
now reports it as game, the same as a top-level file. Clients selecting
a folder game's files by category get the whole game.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(scan): list the ROMs a ScreenScraper breaker skipped in the scan summary
A ROM whose ScreenScraper lookup was answered by the quota or credentials
breaker is now recorded, and the end-of-scan summary lists those ROMs beside
the rate-limited ones. A ROM whose name lookup still reached ScreenScraper
after a short-circuited hash lookup is not listed.
Closes#4358
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ss): list quota-skipped roms by path
Addresses Greptile's review on #5727: same-named roms on different
platforms collapsed into one entry in the skipped list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(demozoo): send an API key with every Demozoo request
Demozoo's API has required an API key since 2026-11-01. Add
DEMOZOO_API_KEY, sent as an Authorization: Api-Key header, and enable
Demozoo when it is set, like the other key-based providers. It replaces
DEMOZOO_API_ENABLED, since requests without a key are refused.
Fixes#5698
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(scan): fetch file rows per rom on quick scans
A quick scan loaded every file row of a 200-rom batch up front, so a
platform with a few extracted multi-file games held hundreds of thousands
of RomFile objects at once and the worker was OOM-killed. Each rom now
fetches its own rows inside the scan semaphore, capping the rows held to
SCAN_WORKERS roms.
Refs #5706
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* style(scan): shorten the batch lookup comment
Addresses Greptile's review on #5725.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* 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>
A change to a platform directory scheduled an UPDATE scan of the whole
library, which only refreshes ROMs that already exist, so a new platform
showed up empty until the next quick scan. Every change now schedules a
quick scan scoped to its platform, and a folder with no platform row is
scoped by its slug so the scan creates the platform and adds its ROMs.
Fixes#5707
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The cover search asked SteamGridDB for every content variant, so a user
under an age limit could browse NSFW artwork through a client. The
server now asks for SFW grids only when the caller has an age rule.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A push stored its save with origin_device_id and its states with none.
The web player counts a state with no origin_device_id as its own and
prefers a state on a tie, so after a console pushed a save and states in
the same snapshot, the web player booted the console's state instead of
its save, though that state may be another core's or older than the save.
A pushed state now carries the same origin_device_id as the save beside
it.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): hash bytes that only end like a zip as one file
zipfile.is_zipfile is true for any file whose last 64 KB hold a zip's end
record. An emulator state can: Power Stone's Flycast (Naomi) state holds
the tail of the game's own TorrentZip archive. Reading such a file as a
zip fails, so compute_content_hash returned None, and a snapshot push
carrying the state was refused whole with "does not hash to the
manifest's value".
When the bytes cannot be read as a zip (BadZipFile), compute_content_hash,
hash_save_content and the memory card hash now hash them as one file, as
the web player's saveContentHash and the snapshot identity hash already
do. A real zip they cannot read within the limits stays unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Hash bytes as one file when the copied central directory points an entry
before the bytes start, as the tail of an archive longer than the state does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: plain-prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(saves): decide what is a zip archive by one rule
Bytes are a zip archive only when their entries start at the first byte.
A state or save holding another archive, whole or only its tail, after
data of its own is hashed, shaped, uploaded and unpacked as one raw file
everywhere: the content hashers, the identity hash, save_shape_of,
check_upload and unpack_save_unit. A real archive with a corrupt entry
stays unknown to the content hashers, and the identity hash falls back to
the bytes for one past the limits too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
* feat(i18n): add Ukrainian locale
* fix(i18n): address Greptile Ukrainian locale review
* fix(i18n): proofread the Ukrainian locale
Fix the machine-translation errors left in the uk_UA catalog: glosses
glued onto words ("ХешісCity in Germany"), Russian lines, mangled RomM
and brand names, and wrong word senses (save states as "штати", saves
as "заощадження", walkthroughs as "прогулянка", unpin as "Приєднати").
Give every count message three plural forms and use one term per
concept: завантажити for download, вивантажити for upload, прошивка,
трансляція, акаунт, токен, добірка, папка and знімок екрана.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(i18n): reject words that mix Latin and Cyrillic letters
Machine translation can leave an English gloss glued onto a translated
word ("Сканування зупиненоName"). check_i18n_locales.py now fails on
any word in a locale file that runs Latin and Cyrillic letters together,
ignoring placeholders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: tarasromil <16254098+tarasromil@users.noreply.github.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pruning a channel re-syncs the sharing of the save and state rows the
deleted snapshots shared with snapshots that stay. That Core UPDATE of
is_public also ran updated_at's onupdate, so each kept row took the
prune's time though nothing in it changed. The web player resumes the
newest save by updated_at, so after a push that pruned a snapshot more
than ten back it booted an old save another snapshot still held, often
another app's.
sync_content_visibility now keeps updated_at, as touch=False does for the
sharing routes: sharing is not a write. The same holds where a push into a
public channel, a channel's sharing change and a snapshot's sharing change
sync it.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test(api): check returned and forwarded error statuses too
The route error check only saw HTTPException with a literal status. It
now also counts error responses a route returns, statuses passed to a
helper, status maps, IfExp and local variables. A status it still cannot
read fails the check instead of passing silently. Routes left out of the
schema are skipped, and 422 counts as documented only when FastAPI
documents it. The API description now names the middleware errors no
route lists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(api): fail on documented statuses a route cannot raise
Add a stale check, the reverse of the undocumented one. To keep its
false positives near zero, the analyzer now follows functions run
through asyncio.to_thread and similar offloads, and skips a try body
whose handler swallows every error (keeping the responses it returns).
A new `# route-errors: raises <codes>` marker declares what a line
raises when the analyzer cannot follow or read it.
Following offloads found an undocumented 502 on save-and-exit: a
container with no broker address fails the card wipe. search_cover
declares the SteamGridDB 401 it re-raises from a gather.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: plain-prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review (best-effort broker PUT never raises)
put_binary_json looked up the broker URL outside its try, so a container
with no broker address raised a 502 from a helper documented as never
raising. Evacuation already fails first on that container, so the 502
documented on save-and-exit could not happen; drop it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: plain-prose (code-review additions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish (build a real container in the broker test)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(streaming): offer disc sheets, not their tracks, as stream discs
The start-disc picker and disc-swap dialog only treated .cue as a disc
sheet, so .gdi, .ccd and .mds sets listed their raw tracks, which the
backend rejects. Pick discs the way utils/m3u.disc_files does.
Fixes#5709
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(streaming): keep patches and variants out of the disc lists
The start-disc list now drops patch files by extension, as disc_files
does, and the swap dialog lists only the base game's discs, as
playlist_files does, so neither offers a file the backend rejects.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: review-polish
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pr-ready: prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(streaming): order stream discs by disc number
The backend's disc_files sorts by the disc tag, so a set of ten or more
discs listed Disc 10 before Disc 2 in the start and swap pickers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(streaming): offer no disc pick before the first heartbeat
Patches are recognised by the heartbeat's supported extensions, which are
empty until a heartbeat lands, so a root-level patch showed up as a disc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(streaming): decide the disc swap from the disc sent with the claim
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
FirmwareTab and DeleteFirmwareDialog looked up three keys that no
locale defined, so their tooltips and bulk checkbox always rendered the
inline English fallback. Define them in en_US and translate them in
every locale.
Fixes#5711
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(jukebox): fall back to the file name when a track's embedded title is empty
panelTracksFromRom used ?? for the title, so an empty tag stayed an empty
title, while the catalog path (panelTracksFromCatalog) already falls back
to the file name with ||.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(jukebox): type the empty-title fixture instead of casting it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>