Skip to content

feat: stop following a ROM of another seed than the run's - #461

Merged
kqesar merged 16 commits into
masterfrom
rom-run-mismatch
Nov 1, 2026
Merged

kqesar merged 16 commits into
masterfrom
rom-run-mismatch

Conversation

@kqesar

@kqesar kqesar commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

When the run knows its seed and the connected ROM names another (an old ROM still loaded), the board no longer follows that ROM: no items, checks, entrances, doors, settings, prizes, objectives or timer. A notice on the board and a line in the Autotracking dialog name both seeds and offer New run or Follow this ROM (the run takes the ROM's seed). Each answer is a single undo step, and undoing it restores the run with nothing of that ROM. This covers ALttPR (vt, DR, OWR), Super Metroid and SMZ3. Archipelago is unchanged.

The check is off in Race Mode, and the dialog says so. Nothing changes while either seed is unknown, or when the two ids cannot be compared. For example, an avianart hash cannot be compared with a DR title's number, so no notice is shown. An avianart link now gives the seed id in the ROM's own form. The page reserves room under the notices only where they would cover the board, and keeps the scrollbar gutter, so the notices never hide focus (WCAG 2.4.11) and never reflow the board. Starting a run from another seed, or importing one, while the old ROM is followed keeps the new run. Undo restores the run's own time.

Verification: lint, typecheck, check:docs, test:coverage (6883 passed) and build all pass. The full e2e suite passes on 4 workers. The new tests run against real avianart permalinks and their ROM titles, cover New run and Undo for each game, and include axe, a focus-not-obscured check and screenshots at 390/820/1440/1920.

A Door Randomizer seed has two ids, the ROM title's and avianart's, and a title cut to 21
bytes keeps only the start of the seed: the app needs one rule to compare a ROM with a run.
An old ROM still loaded laid its items, entrances and settings on a new run. Outside Race
Mode the board now follows nothing of such a ROM and says so, offering a new run or Ignore.
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🔍 CI Results

Check Status
Linting ✅
Type-check ✅
Tests ✅

📊 Test Coverage

Metric Coverage Status
Lines 99.02% 🟢
Statements 98.13% 🟢
Functions 98.55% 🟢
Branches 93.03% 🟢

✅ All checks passed!


Updated at 2026-11-01T21:25:37.511Z

kqesar added 14 commits November 1, 2026 21:18
…match

DR's own branch titles its ROM with the seed's number and OWR keeps 9 characters of the hash,
so a run started from an avianart link froze autotracking as another seed's. The link now
gives the ROM's form, and a hash that cannot be held to a title's number is no mismatch.
The ROM laid on the new run was laid on every snapshot too, so Undo brought back the old run
with the other seed's items, checks, objectives and settings. News now skips snapshots of
another seed, and ALttPR's New run is one step even when it takes the seed's run type.
"Ignore" read as leaving the ROM alone while it merged that ROM into the run, as game news no
Undo could take back. The answer now says what it does, and the run taking the ROM's seed is a
step of the player's, so a misclick is one undo away.
… focus

The fixed notices covered the board's last controls at phone widths, and a control focused
there stayed under them (WCAG 2.4.11). The page now keeps their measured height as room at its
end and as scroll padding, and the e2e checks the lowest control clears every notice.
ALttPR's browser test exercised only the follow answer, and neither checked that Undo gives the
run back without the ROM's finds, which let the snapshot leak through.
The store rules still said nothing shows the seed, and the guide said any run started from a
seed knows it, while one of the board's own run type leaves the run untouched.
A timer on the game's time ran on real time while another seed's ROM was held, and a held ROM
read from its file select into play never started a new run's timer. The game's time now stops
at the run's last one, and the before-play state survives the hold.
…ollowed

Start from a seed, an Import or a shared link resynced the follower, which laid the old ROM's
last reading: the new run took that ROM's seed and progress, then froze on its own ROM. The
reading is now held like any of another seed's, and a known seed is never renamed silently.
…s too

OWR without a site's ROM header titles its ROM with the seed's number, so an avianart OWR run
could meet a title of the other form and freeze. A number against a hash is now null, never a
mismatch, whichever side is a title.
…laced

The timer lives outside the undo snapshots, so Undo after New game, New run or Follow this ROM
restored the run with the other run's time. A step that replaces the run or its seed now keeps
the run's clock beside its snapshot, and Undo and Redo bring it back.
…ep the gutter

The notices' full room was added to every page, which scrolled pages that fit before, and a
classic scrollbar coming with a notice narrowed the board, which reflowed. The page is now
padded by what the board needs, and the scrollbar's gutter is kept.
…ared

A run holding avianart's hash took the ROM title's number as its seed though nothing proved
them one seed, losing the hash its link, share and spoiler binding rest on. A known seed is
now renamed only to a form proven the same, the reading still laid.
…followed

In Race Mode the check is off, so a resync laid the race ROM's last reading on a run started
from another seed or imported: the run took that ROM's seed and progress. A race's reading of
another seed is now dropped on a resync, and the next reading decides.
The game clock kept for the hold was the ROM's, not the run's: a run replaced in another tab,
before a resync or by Undo of Follow this ROM got the held ROM's time on its timer. The clock
now names its ROM's seed, pauses only a run of that seed, and a resync drops it.
@kqesar
kqesar merged commit 058931c into master Nov 1, 2026
16 checks passed
@kqesar
kqesar deleted the rom-run-mismatch branch November 1, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant