A user-invoked skill that triages each bot finding on a PR (holds up, introduced by the PR, consistent with its intent), fixes the ones that stand, replies with the fix or the reason for declining, and resolves the threads. Registered in the CLAUDE.md skills table.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
Condense the comments that ran past two lines, and build the launch
intent fixtures from typed factories again rather than bare literals.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reveal the selected tab whenever RTabNav's strip resizes, not only when it first appears, so a narrower strip can't leave it under the fade. Move the "or" divider label to common.or (every locale, with a real Japanese translation) for the patcher and the v2 login; v1 keeps login.or. Fold SubtabNav's header comment into a one-line doc on its variant prop.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
pr-ready step 4 (review-polish): give RDropzone's optional props explicit defaults so Trunk's require-default-prop stays quiet on the touched file, and drop an em-dash from the SaveDataTab header.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
The dev container mounts frontend/ alone, so the vite plugin that now
reads the nginx template could not find it and the dev server refused to
start. Mount the template directory read-only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The dev server now parses the isolated URLs out of the nginx template
instead of restating them, and refuses a template that yields none.
js-dos skips the runtime preload on the leg it is about to reload away,
records its play session on pagehide, and takes the relaunch marker from
the composable that defines it.
Also drops a redundant parameter and a duplicated derivation from
applyLaunchIntent, collapses the repeated id checks in isLaunchIntent,
gives the js-dos asset bases one home, and trims the comments.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A full navigation out of the player aborts the route change, so the leave
guards below the view never run and the v1 player's pending save was lost.
`usePlayerExit` now settles the departing document first, and EmulatorJS
asks the v1 `Player` for its flush there.
js-dos reached its view by SPA navigation without cross-origin isolation,
although the DOSBox-X backend is a threaded build and nginx has always
isolated its URL. It now relaunches into an isolated document the way
EmulatorJS does, so the view still opens without a page load.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Replace the player entry when leaving by SPA navigation, keep a failed
js-dos runtime load from stacking a second stylesheet, and answer the
player URLs from `vite preview` as well as the dev server.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
pr-ready step 3 (simplify): SubtabNav takes the caller's item type so notes ride on their picker items, groups and item-append stay menu-only, MediaTab derives its panel ref types and switches on the subtab, RTabNav merges its re-measure watchers, the patch either-or clears from the select's own event, and the "or" divider style moves into RDivider.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
pr-ready step 2 (code-review xhigh --fix): restore the pill gap and a zero min-width on RTabNav, keep chevron clicks from stealing focus, scroll a keyboard-focused tab clear of the fade, paint the subtab focus ring inside the button, and cover SubtabNav and the patch either-or rule with tests.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
The Library/Upload switch is gone: the bundled-patch select sits above a compact dropzone, picking either clears the other, and the uploaded file stacks over the hidden dropzone so the panel never changes size. RDropzone gains a single-row compact variant.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
Media, Files, Save data and Notes share SubtabNav: the side rail on wide layouts, and on phones a single trigger row opening a bottom sheet (grouped for notes, searchable past eight entries). A subtab's single Upload joins that row, and the walkthrough URL form wraps instead of overflowing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
A horizontal strip that scrolls now fades whichever edge clips tabs and shows a chevron there, and scrolls the active tab into view, so a phone-width tab bar no longer looks like it ends at the screen edge.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
`directory_exists` and `Rom.full_path` already spell out the check the
scan does at its own call site, so the path is no longer rebuilt here.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The field's aria-describedby pointed at the info well, which was marked
aria-hidden, so assistive technology could drop the description. The info
text now lives in its own hidden node that the field references, and the
well is no longer aria-hidden since its default content is decorative
already.
Also cover the info tooltip reveal: keyboard and pad focus open it, mouse
focus does not, and blur or opening the menu closes it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
The Files tab no longer offers a plain Upload from All files, which has
no destination of its own. The admin spec now checks "Upload to folder"
there and Upload in a folder subtab, and the read-only spec checks that
neither appears once the tab has rendered.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
The memory card and scan media notes sat as loose hints under their
select; both now live in the select's info well. Scan settings section
descriptions were capped at 680px and wrapped early on wide screens; they
now take the section width and only wrap when it runs out.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
Both slot pickers, in the save upload dialog and the EmulatorJS player,
list "+ New slot" first behind a divider. A save upload now starts on
autosave, with No slot moved to the end, matching the slot grouping in the
save list. The player's slot info moves from a loose button into the
select's info well.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
All files has no destination of its own, so its header now offers only
"Upload to folder", styled like Upload, and folder subtabs keep only
Upload. The destination picker leads with "New folder" set apart by a
divider, defaults to Root, and shows each folder with its subtab icon.
RSelect gains `dividerAfter` for grouped menus, plus an `#append-label`
well mirroring the inline prefix label, which `info` fills with an info
icon and tooltip read as the field's description.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
The Soundtrack and Manual subtabs put Upload in a full-width button under
their viewer, unlike the Files, Screenshots and Save data tabs, which host
it in a header above the content. Both now use that header, with Upload
pushed to the right next to the manual entry selector when there is one.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
- The stream player restated the stop pair `useActivityPresence.stop()` now
owns, so it calls it.
- The dev server's isolation list and the nginx map it mirrors are checked
against each other by a test, rather than by a comment asking whoever edits
one to remember the other.
- One case covers the js-dos runtime being injected once, whichever side of the
first load a second view mounts on.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R1VFUvsR5wYK3axxR1gebc
Findings from the review pass over the SPA launch change, plus the two bot
reviews on the PR.
Correctness:
- Presence stops were addressed to the device, not to a rom, so a view that
never announced anything could clear what another tab was playing. A stop now
needs a started session, and happens once; `useActivityPresence` grows the
`stop()` the two call sites were spelling out by hand.
- The EmulatorJS exit read `window.EJS_emulator`, which a departure taken while
the loader was still injecting would not see yet, so the runtime could be left
in a document a later launch then failed to load into. It tracks the injection
itself.
- js-dos resolved its asset base per view: a second launch in a document whose
runtime came from the CDN looked for the payloads locally. Two views mounting
at once could also both inject the runtime. Both now go through one
document-level loader, which resolves with the base it served from and lets a
later mount retry a failed load.
- A blocked sessionStorage threw while every EmulatorJS view was initialising.
Storage that cannot be read is an absent intent, and one that cannot be
written cancels the relaunch rather than losing the selection to it.
- Outside a secure context the headers cannot expose SharedArrayBuffer, so the
reload only delayed the same error by a round trip. It is refused up front.
- The dev server mirrored one of the two nginx isolation entries, leaving the
console player unisolated there.
Reuse and cover:
- `usePlayerExit` owns the whole rule again: `departing` moved in, so both views
use `guard` rather than one of them restating it, and the `leaving` flag it
never needed is gone.
- Resolving an intent back into a selection is a pure pair in `launchIntent.ts`
with its own tests, rather than closures the view kept to itself.
- The Vite plugin is a script beside `precompress`, so the regexes that have to
track nginx are tested.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R1VFUvsR5wYK3axxR1gebc
* fix(v2): absorb the skipped transition preemption rejects
Activating a game card starts a shared-element morph, and navigating
inside it starts the router's own view transition. The browser skips the
older of two overlapping transitions, rejecting its `ready` promise with
an AbortError that nothing consumed, so it surfaced as an unhandled
rejection on every forward card activation. Back navigation preempts the
same way in the other order: the router's transition starts first and the
back-morph skips it.
Absorb the skip at both leaking sites, in the transition plugin wrapper
(only `captured` is awaited) and in `morphTransition` (only `finished` is
consumed). Both transitions are still created and one still animates, so
the morph behaviour is unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix(v2): absorb the preemption skip at every transition site
The router's wrapper absorbed the AbortError a preempted transition
rejects `ready` with, but the two transitions the v2 morph code starts
directly did not. Move the handling into one exported helper used at all
three sites, so the back-morph preempted by a navigation during its
capture phase no longer leaks an unhandled rejection.
The helper rethrows any reason that is not an AbortError, so a genuine
transition failure stays visible instead of being swallowed.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* test(v2): share the view transition test fixtures
Both transition test files carried their own copy of the
startViewTransition stub, and the unhandled-rejection probe was inlined
in one and rebuilt in the other. Move them to src/test-utils, next to
serverError, so there is one stub to keep in step with the API.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* test(v2): drive the back-morph guard through a real router
The fake router and route fixtures needed `as unknown as` casts, which
the v2 component rules prohibit. A memory-history router gives the guard
real route objects instead, so the test drops the casts and exercises the
registration it actually ships with.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* fix(v2): stop probing platform icon variants that cannot exist
The /assets/platforms catalogue is keyed by RomM's canonical platform
slug, and two probes worked against that:
- prefetchPlatformIcons fetched only `<slug>.svg`, but 114 of the 199
catalogue entries ship `.ico` with no `.svg`, so every ico-only
platform in the library 404'd on every app load, on every page, since
AppLayout prefetches the whole platform store.
- RPlatformIcon tried `fsSlug` before `slug`. The filesystem slug is the
on-disk folder name, which for Batocera/ES-DE libraries is an alias
(`dreamcast`, `megadrive`, `pcengine`) with no asset, so each of those
burned two 404s per icon render before the canonical slug resolved.
Neither broke rendering, since both chains terminate at default.ico, so
this removes wasted requests only: 94 of the 138 folders in
PLATFORM_FS_ALIASES have an asset under the canonical slug alone and
none have one under the folder name alone.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* test(v2): tighten platform icon test typing and trim comments
The prefetch tests faked `blob()` with `{ type } as Blob`; a real `Blob`
carries the same `type` and drops the cast. The chain helper took a
`Record<string, unknown>` prop bag, which could not catch a mistyped prop
name.
Comment blocks over two lines carry the same fact in one.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix(v2): keep probing candidates when a prefetch fetch fails
A rejected fetch threw past the candidate loop to the outer catch, so a
transport failure on `.svg` abandoned the `.ico` that would have warmed
the cache. Each candidate now fails on its own.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
`startViewTransition` ran its callback twice whenever
`document.startViewTransition` exists: once eagerly at the top of the
function, to build the fallback promises, and again inside the native
update callback. The only caller today is the router's `beforeResolve`
guard, which passes no callback, so the double run was dormant.
The eager call is gone from the native path. The fallback path still
invokes the callback itself, and still resolves `captured` immediately:
nothing is snapshotted without the API, and the guard awaits that promise
to know navigation may proceed, so making it wait would buy nothing. On
the native path `captured` still resolves from inside the update
callback, so a caller awaiting it still learns the old state was
captured.
Tests cover the callback running once on the native path, once when a
native transition is preempted, and once on the no-API path with all four
promises resolving.
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
engine.io-client 6.6.5 pinned ws to ~8.20.1, below the 8.21.0 fix for
GHSA-96hv-2xvq-fx4p (CVE-2026-48779). 6.6.6 moves to ~8.21.0, and
socket.io-client 4.8.3 already allows ~6.6.1, so the bump resolves
in-range without an override. Also dedupes happy-dom's nested ws copy.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix(v2): line the placeholder rows up with the rows they stand in for
The Home card rows painted a fixed number of skeletons (6, 6 and 4) while
their requests ask for up to 15, so the loading row was shorter than the
row it turned into. They now size themselves from RECOMMENDED_ROMS_LIMIT,
RECENT_ROMS_LIMIT and RECENT_PLAYED_ROMS_LIMIT, the way v1's
RecentAddedSkeleton already did.
List mode has two placeholder rows: the bootstrap GameListSkeletonRow, and
GameListRow's own skeleton path for a row that mounts before its position
resolves. The second painted the 48x64 cover placeholder inside the title
cell and a thin bar in the cover column, so for the second before
hydration a cover-shaped block sat where the title text starts. It now
paints the same per-column shapes as the bootstrap row.
The list header's select-all checkbox is a stretched grid child carrying a
4px margin, which put its tick 6px left of the body rows' ticks, centred
in the same column.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* test(v2): cover all three Home loading rows and read the real limits
The mock listed the three ROM limits by hand, so the assertion compared
the view against a second copy of those numbers instead of the numbers
themselves. It keeps the real module's exports now and stubs only the
feed request. Only the recommendation row was asserted, though the other
two changed the same way, so the count check is a table over all three.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix(v2): stop the loading rows lying about their height and their count
Three placeholder defects, all only visible while a row is loading.
The recommended row's cards carry a caption under the title, and the
placeholder skipped it, so the row sat 24px shorter until the data landed.
Its placeholder now reserves that line.
Nineteen of those 24 were the caption. The other five were the label: its
reserved height was a class rule, which loses to the inline height the
skeleton bar has to carry, so the reservation never applied and every
skeleton card stood 5px short of the card replacing it. The reservation
moves to a wrapper that has no inline height of its own, and the bar keeps
its own thickness.
Rows also showed a count of 0 for as long as their list was in flight and
then jumped to the real number. The count chip now stays off until the
count means something.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* style(v2): trim the placeholder-row comments to their invariants
Each of these ran to three lines or more, and spent them on the approach not
taken. What is left is the fact a reader cannot get from the code: the two
placeholder rows share a column grid, the label wrapper owns the line box its
bar cannot, the count stays off until its list lands, and sizing goes through
props (and the default `inheritAttrs`) so a skeleton can swap for a real card
without moving anything.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* style(v2): finish the comment pass on the placeholder rows
Drop the skeleton comment's third line in GameListRow, and take the em-dash out
of GameCardSkeleton's header.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PwN1xRVo44Y2vKbuVDndf
* style(v2): name both rows in the parity comment
"Both" only resolves if the reader already has the two mounts below it in view;
the comment now says which two rows share the column grid.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Name the candidate predicate for what it checks, trim the ordering
docstring, and drop the comments the moved guards made stale.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sort title id sources with the natural key the models already compute,
give the compressed suffixes one home, and let SigilService reject a
container itself rather than trusting every caller to.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Order discs by their number so "Disc 2" precedes "Disc 10", test one
rule for containers sigil cannot read, and drop the unreachable
OSError handler around Path.is_file.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
AssetList moved its timestamp into <AssetTimestamp> and gained
groupBySlot on master, so the picker's `timestamp` prop now feeds the
component's date and both props coexist. The "updated" | "created" type
and its accessor join Asset's other shared helpers in v2/utils/assets,
where AssetPreview takes them too, since the old local name collided
with the AssetTimestamp component.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ScreenScraper catches its own rate limit and breaker, so the miss they
cause never reaches resolve_fetch and was still written up as confirmed.
Hasheous had the opposite gap: an unanswered hash lookup still counted as
attempted, so a complete rescan cleared the id the lookup could not redo,
and a disabled handler reports the same flag as an outage without ever
having been consulted.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>