The EJS core mapping in frontend/src/utils/index.ts keyed the ZX
Spectrum entry as zsx instead of the canonical platform slug zxs (as defined by UniversalPlatformSlug.ZXS in backend/handler/metadata/base_handler.py).
Renaming the key to zxs restores in-browser play for ZX Spectrum.
SuperGrafx games never matched against RetroAchievements: the supergrafx
slug had no RA platform ID, so RA hashing was skipped during scans and
matching bailed out early.
RetroAchievements has no separate SuperGrafx console; its games share the
PC Engine/TurboGrafx-16 console, ID 8, same as tg16. Map supergrafx to
that console in both RA tables, mirroring the existing tg16 entries.
Fixes#3651.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Famicom Disk System (FDS) games never matched against RetroAchievements:
the fds slug had no RA platform ID, so RA hashing was skipped during scans
and matching bailed out early.
RetroAchievements lists the FDS as its own console, ID 81, separate from
the NES/Famicom console (ID 7). Map fds to that console in both RA tables,
mirroring the existing platform entries.
Fixes#3646.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
MSX2 games never matched against RetroAchievements: the msx2 slug had no
RA platform ID, so RA hashing was skipped during scans and matching
bailed out early.
RetroAchievements has no separate MSX2 console; it groups MSX2 under the
MSX console, ID 29. Map msx2 to that console in both RA tables, mirroring
the existing msx entry.
Fixes#3644.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The hook never ran: the script was mode 644 and the command invoked it
directly ("$CLAUDE_PROJECT_DIR"/...sh), so it failed permission-denied and
silently no-oped, leaving git commit signing unconfigured. Mark it +x and
invoke via `bash` so a lost mode bit can't regress it. CLAUDE_PROJECT_DIR
is populated for SessionStart hooks, so the path was never the issue.
Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
The has-saves / has-states filters matched only the current user's own
saves/states. Match public (community) ones too, so a ROM with another
user's shared save/state is surfaced by the filter — mirroring the
owner-or-public visibility used elsewhere (get_rom_shared_saves/states).
Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
GalleryShell's filter-change watcher and active-filter count enumerated
every filter except filterSaves/filterStates, so toggling them updated the
store (and URL) but never invalidated the gallery windows. The library only
refreshed once another watched filter changed. Add both to the storeToRefs
destructure, the refetch watch, and the active-count badge.
Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
Wire the existing filterSaves/filterStates store fields into the v2 filter
drawer as tri-state toggles (they were destructured but unused), and add the
has-saves / has-states labels plus their aria strings across all 18 locales.
Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
The /api/roms filter_values dict is cached in Redis keyed only by a
runtime data-version that survives app upgrades. When a filter field is
added (e.g. tags), entries written by the previous version lack the new
key, so the response fails validation (filter_values.tags "Field
required") and returns 500 until the entry's 7-day TTL elapses or a scan
invalidates it.
Embed a schema version in the cache key so reads after an upgrade ignore
entries written under the old shape and recompute instead. Pre-namespace
keys are bypassed for free by the changed key format. Bump
ROM_FILTERS_CACHE_SCHEMA_VERSION whenever the cached dict gains or loses
a field.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The single-rom endpoints (`/{id}/simple`, `/{id}`) build SiblingRomSchema
from the eager-loaded `sibling_roms` relationship. `_visible_siblings`
filters those siblings with `perms.can_see_rom(s.id, s.platform_id)`, but
the `with_details` loader restricts sibling columns via `load_only` and did
not include `platform_id`. Reading the deferred attribute after the session
closed triggered a lazy load on a detached instance, raising
DetachedInstanceError.
Add `Rom.platform_id` to the sibling `load_only` so the permission check
reads an already-loaded column.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Extract the art-asset resolution into a shared util (resolveRomArtwork)
so the Media tab's Artwork subtab and the Overview tab stay in sync, and
add a Videos section to the Overview tab for the scraped preview clips.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FFq1CxyxqM5nBCY6Tfgyv1
The V2 game details view only surfaced screenshots and title screens,
hiding the majority of scraped art (bezel, logo, marquee, box art, fan
art, mix images) and the scraped videos that the classic GUI showed in
its overview carousel.
Add an "Artwork" subtab to the Media tab: a read-only, labelled gallery
of every scraped art asset that doesn't already have its own surface.
Images open a fullscreen lightbox; videos play inline. ScreenScraper is
preferred with gamelist fallbacks, mirroring v1's MediaCarousel.
Closes#3613
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FFq1CxyxqM5nBCY6Tfgyv1
Chunked ROM uploads created their temp directory directly under
ROMM_BASE_PATH (/romm/tmp/uploads). The bare /romm directory is owned by
the image's romm user (1000:1000, mode 755), so containers running with a
custom UID/GID cannot create directories there, causing uploads to fail
with "PermissionError: [Errno 13] Permission denied: '/romm/tmp'".
Default the upload temp root to RESOURCES_BASE_PATH instead, which is a
writable mounted volume in those setups (this is why manual uploads, which
write under resources/, already worked). ROMM_TMP_PATH still overrides it.
Fixes#3574
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ficBAiEtYtZyBY8nWExKh
The v2 game details Overview tab did not surface the parsed revision
tag (e.g. "Rev 1", "Rev B"), which the classic GUI showed in its Info
section. Add a Revision fact row to the Overview tab, sourced from the
ROM's revision field.
Closes#3617
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TUiuFX615VBcwYT7xb6dsm