Commit Graph

13689 Commits

Author SHA1 Message Date
Sam Dornan
f7a8a46ec5 Merge remote-tracking branch 'origin/master' into claude/tender-hopper-m4x9hm
# Conflicts:
#	docker/Dockerfile
2026-10-01 23:24:10 +00:00
Sam Dornan
3b4e230b7c Upgrade SQLAlchemy to 2.1 (#5007) 2026-10-01 19:17:30 -04:00
Georges-Antoine Assi
640a783f3f feat(converto): convert the library in place and serve downloads in a requested format (#4999)
* feat(converto): integrate rom-converto for title id extraction and download conversion

* fix(docker): ship rom-converto in the production image

Only the dev Dockerfile installed the binary, so the integration could
never enable on a released image. Fetch the same pinned, checksummed
musl build in a dedicated stage and copy it next to RAHasher.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(converto): skip the update check and batch info calls

The CLI asks api.github.com for a newer release on every run unless
told not to, so pass --no-update-check on each invocation. Inspect a
rom's files in one `info --paths-file` run instead of one subprocess
per file, and read the inspectable extensions from the capabilities
manifest so scans skip files info cannot recognize.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(scan): keep sigil authoritative for title ids

rom-converto ran first and overrode the ids sigil read. Sigil now runs
first and records its per-file ids; rom-converto only fills files sigil
left unset, on new or changed files, in one batch. Restore the base-id
selection for sigil extractions on every platform, as on master.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(downloads): make conversion opt-in and bound the cache

The download endpoint returned a converted file to every client once a
platform had a target, including the browser player and apps that check
hashes against RomFile. Conversion now needs ?converted=true.

A pre-warmed copy is served whatever its size; the in-request size cap
only gates starting a conversion. ROM_CONVERTO_CACHE_MAX_SIZE_GB
(default 20, 0 unbounded) caps the cache: conversions and the pre-warm
task stop when it is full, and cleanup evicts the least recently served
copies.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore(types): regenerate frontend types for the converto schema

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(converto): address code-review findings (pr-ready step 2)

- Fall back to rom-converto's stored ids only when it ran this pass, in
  disc order, so a rescan that skipped extraction keeps sigil's save target
- Persist per-file title ids that extraction writes onto reused rows
- Only authenticated callers may start an in-request conversion; past a
  240s deadline serve the original and let the conversion finish into the
  cache instead of nginx returning 504
- Treat a probe OSError or timeout as a failed probe; kill the subprocess
  when the caller is cancelled
- Give the pre-warm task the scan timeout and report progress in the
  ConversionStats shape the task UI reads
- Reuse zip_cache constants, walk the cache off the event loop, tolerate
  files vanishing mid-cleanup, and trim long comments

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): simplify conversion code (pr-ready step 3)

- Move the converted-download policy (target lookup, cached-first, sync
  size cap, deadline) from the endpoint into utils/conversion_cache and
  share conversion_target with the pre-warm task
- Share one path lookup between get_cached_converted and get_or_convert;
  the pre-warm walks the cache once and tracks a running byte budget
  instead of walking it twice per rom
- One normalize_platform_formats beside TARGETS_BY_PLATFORM for the
  config loader (via _validated_platform_map) and the settings endpoint;
  update_converto_settings takes a ConvertoConfig and is written back
  with dataclasses.asdict
- read_infos owns its never-raise contract, so the scan drops its blanket
  except; drop the unused RomConvertoInfo.kind and error attributes
- Sort files for the rom-converto identity only when it is used; stat
  each cached file once during cleanup

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore(converto): trim comments (pr-ready step 4)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): convert on first download instead of pre-warming

A library pre-warm fought the TTL: cleanup dropped every copy nobody
downloaded within a day. Remove the Convert library task and convert on
demand only. Files over ROM_CONVERTO_MAX_SYNC_SIZE_MB now start their
conversion in the background while the original is served, so the next
download within the TTL gets the converted copy at any size.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): drop decrypt and encrypt download targets

Downloads now only change a rom's container or compression (CHD, RVZ,
CSO, NSZ, ...); serving decrypted files is left for a separate decision.
NDS and PS3 have no remaining targets. Also note that the conversion
concurrency limit applies per process.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): move the cache limits into converto.*

cache_max_size_gb and max_sync_size_mb join cache_ttl_hours in
config.yml and PUT /api/config/converto_settings, replacing the
ROM_CONVERTO_CACHE_MAX_SIZE_GB and ROM_CONVERTO_MAX_SYNC_SIZE_MB env
vars, so every eviction knob is edited in one place at runtime. The
loader takes its defaults from ConvertoConfig and one table holds each
integer's minimum for both the loader and the payload.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): lock conversions with flock instead of a sentinel

A conversion now holds a non-blocking flock on its key dir, which the
kernel releases if the worker dies. That replaces the .partial sentinel,
its 6-hour staleness guess (which a long ROM_CONVERTO_TIMEOUT could
outlive), and the rename-aside takeover. Cleanup skips locked dirs, and
partial output gets a hidden name so it never counts as a served copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(converto): parametrize repeated test cases

Collapse the per-platform info parsing, operation resolution and
converto_active cases into parametrized tests, so a new platform or
target is one row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(scan): run rom-converto first with sigil as the fallback

rom-converto reads each rom's new or changed files first, in one batch,
and its title ids win. sigil still reads what it can, since it alone
provides save targets and Switch content types, and fills the ids
rom-converto left unset.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* feat(converto): store per-file metadata read by rom-converto during scans

* fix(scan): keep the stored save target when sigil reads nothing

* fix(converto): read Xbox 360 disc ids and Wii title versions, store content type as text

* feat(converto): save file icons, banners and backgrounds read by rom-converto

* chore(converto): bump rom-converto to v0.23.0

* fix(converto): address review findings in the conversion cache, scan metadata and settings

* refactor(converto): move per-file metadata out of the conversion PR

Scan-time metadata (title ids, the 17 rom_files columns, artwork and
converto.scan_metadata) moves to its own PR so its columns land with the
UI that reads them. This PR keeps conversion only.

The conversion cache no longer has uncompressed_size_bytes to budget
with, so a conversion to an uncompressed target reserves a fixed
multiple of its input and the cleanup pass after it evicts any overshoot.

Co-Authored-By: DevYukine <20647088+DevYukine@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017BuuZVVtVPNLRaCjTN9bgQ

* feat(converto): let the client pick the download format with ?format=

`?format=zso,iso` lists the formats a client can read. The stored file is
served whenever its format is listed, even with conversion off, so most
emulator clients never trigger a conversion. Otherwise the first listed
format with a cached copy is served, then the first one rom-converto can
produce.

A conversion that outlasts a short wait answers 202 with Retry-After
instead of falling back to the original, so a URL never serves two
different files and a client never gets bytes it can't read. 406 means
no listed format can be served. HEAD reports the same without starting
a conversion. This replaces `?converted=true`, the per-platform download
target and `max_sync_size_mb`; `cache_ttl_hours` stays config.yml-only.

Co-Authored-By: DevYukine <20647088+DevYukine@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017BuuZVVtVPNLRaCjTN9bgQ

* feat(converto): convert the library in place with a manual task

`converto.platform_formats` now names the format a platform's library is
stored in, and the new "Convert library" task brings every matched rom
to it. Each output is staged in a `.romm_tmp_` directory beside the
original, moved into place, and only then are the originals (and a cue's
tracks) deleted. Single-file roms take the new name, folder roms keep
theirs and get their .m3u entries rewritten, and the file rows refresh,
so a rom keeps its id, saves and collections.

Only lossless conversions qualify, so xbox (xiso trims the dump) has no
library format. Unmatched roms are skipped because a converted file no
longer hash-matches a DAT. `/api/config` now carries the library targets
and, per input extension, the formats a download can be converted to.

Co-Authored-By: DevYukine <20647088+DevYukine@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017BuuZVVtVPNLRaCjTN9bgQ

* fix(converto): address Greptile and Copilot review findings

- Publish a converted library file with a no-replace link, so a file that
  appears during conversion is never overwritten.
- Delete originals only after the rom row or its playlists point at the new
  file, and keep them if that update fails. Playlists are rewritten atomically.
- Refuse a cue conversion whose tracks another rom or another cue holds.
- Remove stage dirs a killed conversion left behind.
- Try later ?format= targets when a conversion fails, treat any locked key dir
  as converting, and cap how many conversions downloads can start.
- Drop the unsupported iso target for CD platforms from the example config and
  list the ROM_CONVERTO_* variables in env.template.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(converto): address code-review findings (pr-ready step 2)

Serve converted outputs at 0644, read cue sheets and playlists with a BOM,
stage folder rom conversions outside the rom folder, keep one rom's failure
from stopping the convert library task, accept alias extensions as the stored
format, probe running conversions with a shared lock, and bound the timeout.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): simplify conversion code (pr-ready step 3)

Check and chmod rom-converto output once in the adapter, canonicalize
requested format aliases, reuse LINK_FALLBACK_ERRNOS and the handler's atomic
write, make the download format table a constant, skip the probe lock once
cached, and fold duplicated name checks and cache stat passes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore(converto): trim comments (pr-ready step 4)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(converto): find rom-converto on PATH instead of ROM_CONVERTO_PATH

Both images install the binary on PATH, the variable was undocumented,
and RAHasher is already resolved the same way.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Yukine <devyukine@gmx.de>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: DevYukine <20647088+DevYukine@users.noreply.github.com>
2026-10-01 19:02:37 -04:00
Georges-Antoine Assi
77da7144d1 Merge pull request #5006 from dms1e4/master
feat(locales): it_IT translation
2026-10-01 18:55:56 -04:00
Sam Dornan
5b2fa8b534 Merge master into claude/tender-hopper-m4x9hm
Master added 0147_roms_search_titles, so the track songs migration is
renumbered to 0148_track_meta_songs and now revises it. Both sides added
a test to test_migrations.py; both are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QetoZBuFzjJPjMuNzHVEDw
2026-10-01 22:19:46 +00:00
Sam Dornan
2d58122d29 feat(search): Rank exact title matches first in relevance-ordered searches (#4996)
* Rank exact title matches first in relevance-ordered searches

Relevance only scored whether a ROM's name, filename or aliases held the
search as a phrase, so a spin-off whose alias contains "Final Fantasy 7"
tied with the game whose alias is exactly that, and the tie fell to title
order. Searches ordered by relevance now rank an exact name or alias match
first, then names starting with the search, then the phrase score.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready step 2 (code-review): match escaped aliases and tidy search parsing

The alias pre-check now looks for the term as the joined aliases store
it, with JSON escapes, so a quoted alias (and, on MariaDB, a non-ASCII
one) can rank as exact. Search phrases reuse the shared term split, the
order_by API description matches the current ranking, and the dialect
test's NULL row is a real SQL NULL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready step 3 (simplify): flatten the search rank and share helpers

The exact-name check is one IN over the folded terms, the provider alias
check has its own helper, json_titles_contain_folded folds the title
itself and builds on json_array_contains_value, PostgreSQL only scans the
aliases for the raw form of a term, and the running-engine dialect tests
share one scratch-table helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Rank one-word searches of three or more characters

A search for an alias like "ff7" now puts the exact match first. The
rule for when relevance leads (and the letter index is dropped) moves to
search_relevance_leads, which the order clauses and the endpoint share:
no explicit sort, and either a multi-word phrase or a term of at least
three characters. Shorter terms keep the name order, since they match
most of a library and ranking would sort every match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Rank exact titles stored with extra spaces or accented capitals

The exact and prefix tiers now collapse runs of whitespace on the stored
name and alias side too, so "Final  Fantasy VII" ranks as exact for
"final fantasy vii". On MariaDB, which stores non-ASCII characters as
\uXXXX escapes that LOWER can't fold, a non-ASCII term is checked against
the aliases decoded through JSON_TABLE, and the alias pre-check goes word
by word, skipping words it can't match in escaped text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Rank search results against a stored, folded title column

Search ranking compared the term against the name and each provider's
alternative titles, which meant decoding JSON blobs per row and working
around MariaDB's escaped Unicode, tabs and newlines. Store the folded
name and aliases in a new `roms.search_titles` column instead, kept in
sync by mapper events and `update_rom`, and backfilled by migration 0147
in batches. Ranking becomes two LIKE checks against that column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Keep fitting aliases after one that overflows the search titles cap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Rank a name prefix only where the search ends a word

"final fantasy viii" starts with "final fantasy vii", so Final Fantasy
VIII took the prefix rank for that search. The name now has to continue
with a non-alphanumeric character after the search, which a regex checks
on the rows the LIKE prefix already narrowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready code review: fix punctuation prefixes and hidden sort direction

- A search ending in punctuation has already ended its word, so the name
  prefix rank no longer needs a further non-alphanumeric character.
- Relevance has no direction: a hidden descending order no longer
  reverses its ties, in the order clauses or the grouped aggregate.
- An alias equal to the name isn't stored twice in `search_titles`.
- `update_rom` reads the stored row once instead of up to three times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready simplify: keep relevance's direction rule with its order clauses

- `_gallery_order_clauses` decides once whether relevance leads and
  drops the direction there, rather than each caller overriding it.
- The search terms are built only where the rank needs them.
- The page hydration query drops a sort its rows are reordered out of.
- The ranking tests share one helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 16:00:11 -05:00
Sam Dornan
4080cee68e feat(search): Order v2 search results by relevance until a sort is picked (#4995)
* Order v2 search results by relevance until a sort is picked

The Search page fell back to the gallery-wide title sort whenever the URL
named none, so the backend only used search relevance to break ties
between identical titles. Search now sends an empty order_by by default,
letting relevance lead; clicking a column still sorts by it and lands in
the URL as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready step 2 (code-review): fix relevance-order edge cases

The backend now decides whether relevance leads and returns an empty
char_index when it does, so single-word searches (still name-ordered)
keep the A-Z strip and letter grouping, and multi-word searches get no
letter headers over rows that are not in letter order. A write under a
relevance-ordered search refetches, since the row lacks the filename and
aliases relevance ranks on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready step 3 (simplify): drop duplicated defaults and test setup

Gallery order clauses check order_by directly again, since the phrases
are already known there; useGalleryOrderUrl takes its default from the
caller only; the default key comes from DEFAULT_ORDER_BY in useRomSync;
and the new tests reuse the existing setup and mount helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Offer Relevance as a sort on Search and read it off the backend

Search's sort menu (grid toolbar and the compact list header) now lists
Relevance, and a third click on a desktop column header returns to it,
so the default order is reachable again after picking a column. The
direction toggle hides under relevance, which has no direction.

useRomSync's refetch now follows the backend's own signal for a
relevance order (an unset sort answered without letter positions)
instead of treating every search as one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Check the Relevance sort entry when it is active

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Show the order the backend applied in Search's sort controls

An unset sort the backend still answered by name (an empty or one-word
search) now reads as Title in the sort controls, with its direction
toggle, rather than as Relevance. The store records whether the last
answer led with relevance and keeps it through refetches, so the controls
don't flicker while a search reloads. Picking Relevance from the toolbar
now also resets the direction, as the list header's third click does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* pr-ready simplify: read the applied order from effectiveOrderBy

- The letter strip reads `effectiveOrderBy` instead of re-checking
  `charIndex`, which also stops it vanishing during every refetch of a
  relevance-ordered search.
- `useRomSync` reads `effectiveOrderBy`, so `relevanceLeads` goes.
- `setOrderBy(null)` resets the direction itself, so `clearOrder` and
  the shell's toolbar handler go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Tell the sort controls whether relevance is applied

The controls read a null sort key as "unsorted", but the shell also
passes null for a gallery key no column carries, so
`/search?orderBy=last_played` ticked Relevance and hid the direction
toggle. The toolbar, list header and phone sort menu now take an
explicit `unsorted` flag from the store's `effectiveOrderBy`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 15:56:36 -05:00
Georges-Antoine Assi
25ee88e5dc Merge pull request #4997 from LoneAngelFayt/fix/upload-name-length-and-status-codes
fix(api): return 4xx for overlong names and duplicate collections
2026-10-01 16:55:47 -04:00
Georges-Antoine Assi
7995faa524 Merge pull request #4896 from rommapp/fix/bulk-actions-whole-selection-4460
Size gallery bulk actions for whole-result selections
2026-10-01 16:42:43 -04:00
Georges-Antoine Assi
77508abfa7 Merge remote-tracking branch 'origin/master' into revert-download-4460
# Conflicts:
#	frontend/src/v2/components/Gallery/SelectionBar.vue
2026-10-01 16:34:32 -04:00
Georges-Antoine Assi
3f9c0b04ea chore: trunk fmt
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:32:04 -04:00
Georges-Antoine Assi
36b8560f2c revert(download): drop the stored download selection endpoint
Bulk downloads only ever name a couple dozen ROMs, so the id list fits
in the URL and `GET /roms/download?rom_ids=` stays as it was. Removes
`POST /roms/download/selection`, the Redis-backed selection handler,
the `selection` query param, and the download-failure snackbar.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:31:58 -04:00
Georges-Antoine Assi
405183b98a fix(sync): reject RetroArch names over 255 bytes with 409
Covers the client's own name and a state screenshot named after a longer
owning state, both of which failed the write with a 500.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:31:55 -04:00
Georges-Antoine Assi
9bb8efac25 fix(roms): move the file before updating the row on rename
A failed move (target exists, permissions, a lower name limit) used to leave
the row pointing at a file that never moved. The move now runs first, a row
update failure moves the file back, and an existing target returns 409.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:31:53 -04:00
Georges-Antoine Assi
b588a287ec fix(assets): 404-mask save and screenshot uploads to a hidden ROM
add_state already checked visibility; add_save and add_screenshot did not,
so an upload confirmed a hidden ROM existed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:31:52 -04:00
Georges-Antoine Assi
7076294746 fix(collections): return 409 when a rename takes another collection's name
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:31:50 -04:00
Georges-Antoine Assi
2dfde1fee5 refactor: simplify pass (pr-ready step 3)
Route add_save's save and screenshot names through
sanitize_asset_filename and keep the before-commit note on the helper
instead of at each call site.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:23:53 -04:00
Georges-Antoine Assi
374b626f2e fix: address code-review findings (pr-ready step 2)
Check screenshot names before the state or save is stored, move the
update_rom fs_name check ahead of provider fetches, check the stamped
state name on pull, skip the length check on a no-op rename, and share
the sanitize-and-check block through sanitize_asset_filename.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 16:23:53 -04:00
Zach Clendenen
cab6cfa3a4 fix(streaming): check the stamped name of a pulled state
Addresses Greptile review on #4997: the library stores a pulled state with
a 22-byte capture stamp, so that is the name to check. Also types the new
test parameters and trims a rationale comment.
2026-10-01 15:15:29 -05:00
Simone
51dc083ff3 Update frontend/src/locales/it_IT/settings.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:12:15 +02:00
Simone
86093604b9 Update frontend/src/locales/it_IT/settings.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:12:00 +02:00
Simone
236ac39dee Update frontend/src/locales/it_IT/settings.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:11:48 +02:00
Simone
67d450428b Update frontend/src/locales/it_IT/settings.json
consistency

Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:11:34 +02:00
Simone
9b8ce078fa Update frontend/src/locales/it_IT/settings.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:11:19 +02:00
Simone
212472fac1 Update frontend/src/locales/it_IT/rom.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:10:40 +02:00
Simone
367178bcab Update frontend/src/locales/it_IT/play.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:10:28 +02:00
Simone
22530cba0b Update frontend/src/locales/it_IT/play.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:10:05 +02:00
Simone
12d744e1d6 Update frontend/src/locales/it_IT/patcher.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:09:50 +02:00
Simone
42c095e172 Update frontend/src/locales/it_IT/console.json
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2026-10-01 22:09:28 +02:00
Georges-Antoine Assi
93d6dbb508 Merge pull request #4993 from rommapp/feat/pad-text-field-exit
feat(input): let the D-pad move through and out of text fields
2026-10-01 16:05:14 -04:00
Georges-Antoine Assi
2e0de3d193 refactor: simplify pass (pr-ready step 3)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:52:41 -04:00
Georges-Antoine Assi
fffee29923 fix: address code-review findings (pr-ready step 2)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:51:01 -04:00
dms1e4
9d8d3e1b8e Update settings.json
maggiore chiarezza, anche in caso di {platform} assente
2026-10-01 21:44:23 +02:00
dms1e4
8afd813368 Fix typos 2026-10-01 21:43:55 +02:00
Georges-Antoine Assi
db0efd213d Merge remote-tracking branch 'origin/master' into feat/pad-text-field-exit
# Conflicts:
#	frontend/src/v2/composables/useGamepad/index.test.ts
#	frontend/src/v2/composables/useGamepad/index.ts
#	frontend/src/v2/composables/useSpatialNav/index.test.ts
#	frontend/src/v2/composables/useSpatialNav/index.ts
2026-10-01 15:40:26 -04:00
Georges-Antoine Assi
5faa695987 Merge pull request #4991 from rommapp/claude/ecstatic-wozniak-1xpe7c
fix: eight bugs from hand-maintained lists drifting apart
2026-10-01 15:37:30 -04:00
dms1e4
1dd773df13 Update settings.json 2026-10-01 21:30:08 +02:00
Georges-Antoine Assi
828954d2a6 fix(streaming): keep an adopted memory card when its claim aborts
An aborted claim deleted the blank it created even after adoption had
stored the container card on it, while the adoption record stayed. The
next claim then skipped the prompt, created a new blank and hydrated
it, wiping the container's original card. The new catch-all in
claim_session made any late failure hit this, not only a failed
hydrate or launch. discard_blank_card now keeps a card that holds a
version, so the next claim mounts it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:29:52 -04:00
Georges-Antoine Assi
2c65a0fd2e chore: review-polish pass (pr-ready step 4)
Trim a two-line test docstring to one sentence.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:16:03 -04:00
Georges-Antoine Assi
b2b7904b51 refactor: simplify pass (pr-ready step 3)
- Validate each exclude list where it is read, so a new path cannot skip
  validation and the rule has one home.
- Move useEscapable to composables/ and use it in RMenu and
  MatchRomBodyGrid, which hand-rolled the same stack wiring.
- Drop the Escape branches in RSelect and RDateField that the escape
  stack's capture listener now preempts.
- Debounce the gallery search with lodash like the rest of v2.
- Drop a cached-client assertion that held by construction.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:10:39 -04:00
Georges-Antoine Assi
c92d665c6c fix: address code-review findings (pr-ready step 2)
- Time stream play sessions only for joiners; the backend records the
  claim holder's session on release, so timing it here counted it twice.
- Reject non-string exclude-list entries (YAML reads 001 as an int).
- Clear the shared dialog close mock between combobox tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:03:08 -04:00
Georges-Antoine Assi
a22480bef9 Merge pull request #4990 from rommapp/renovate/backend-dependencies
chore(deps): update backend dependencies
2026-10-01 14:32:20 -04:00
Georges-Antoine Assi
97ba10f7bd test: stack parametrize decorators instead of itertools.product (simplify)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 14:14:00 -04:00
Georges-Antoine Assi
6842188c6a test: materialize parametrize product for pytest 9.1 (code-review)
pytest 9.1 deprecates passing a non-Collection iterable to parametrize.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 14:12:40 -04:00
Sam Dornan
97a5f80eef Check the active sort in the gallery sort menu (#4998)
* Check the active sort in the gallery sort menu

The grid toolbar's sort menu (and its phone-width mirror) marked the
active axis by colour alone. It now also shows a leading check, the same
way the version switcher and sibling menus mark the current item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Share the sort menu's selection mark and test the phone menu

Both sort menus now take their active variant and check from one
selectionMark helper, and the toolbar test covers the phone-width menu
as well as the inline one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

* Reset the toolbar test's breakpoint in teardown and drop a restating comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015iCApu4gYrGBWDX8JD9JH6

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 12:54:05 -05:00
Georges-Antoine Assi
bf42ac0422 Merge pull request #4989 from rommapp/renovate/frontend-dependencies
chore(deps): update frontend dependencies
2026-10-01 13:50:34 -04:00
Georges-Antoine Assi
f783f7a846 chore(deps): apply the in-range frontend updates to the lockfile
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 13:42:00 -04:00
Georges-Antoine Assi
7dc89a4ab1 chore(deps): hold openapi-typescript-codegen below 0.30
0.30 moved to json-schema-ref-parser 14, whose safe URL resolver
refuses localhost, so `npm run generate` failed in the api-types check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 13:26:50 -04:00
renovate[bot]
b535ed0e6f chore(deps): update backend dependencies 2026-10-01 17:03:30 +00:00
Georges-Antoine Assi
48d4a90220 chore(deps): bump vite to match the rolldown override and refresh the lockfile
Vite 8.0.16 pins rolldown 1.0.3, so the rolldown 1.2.11 override broke
the build. Vite 8.3.1 needs rolldown ~1.2.9 and clears min-release-age.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 13:01:47 -04:00