fix(mods)!: dev mode stops reloading the map, and the restart line and held layers keep up with file changes #3193
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3193
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/mods-restart-note"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follows #3151. Three fixes to what happens when mod files change while the game runs.
1. Dev mode no longer reloads the map. The reload entered the map through its destination's entrance, which played a story cutscene in a run and then failed. The game's map change takes a named start point, and we know no way to reload where Link stands. Dev mode now shows the players' line, Parts of this change may need a restart to show. Fixes #3148.
2. That line now covers files loaded on an earlier map. Every map load forgot which files the game had opened, though the game keeps many of them across maps. With no reload, nothing needs to forget them.
3. A removed file no longer stays served while the layers are held. While the mods' order or a waiting switch differs from the start's, the layers are not built again, so a removed mod folder left paths pointing at nothing until a restart. Those paths are now the game's own at once. When a removed file went into a merged one (a member, a patch, one copy of a shared archive), every merged file is the game's own until the layers are built again. The look for removed files runs once a change, not each frame.
Breaking:
longshot/mods-host'stab().reloadhas onlylater, and the editreloadMapis gone.Read first:
game/crates/api/src/services/restart_note.rs(replacesreload.rs),drop_goneingame/crates/api/src/loader/hot.rsand ingame/crates/content/src/layers.rs.Known gaps:
Testing
Tested: headless game runs on Linux, NVIDIA RTX 3090, driver 620.70.06,
kokiri-start, sandbox off.On
a2a62dc91eed, outside dev mode (the head, rebased ontomainwith one test added, has not been run):Pack/Actor/Dm_Npc_Navi.pack.zs(the pack made inmodcache/) and a mod of 237 texture files switched on in play (228 changed paths were loaded by the game);3 paths of removed files, or made with them (Pack and others): the game's own files are served, 0 ms; deleting the texture mod's folder logged the same for 238 paths, 0 ms;On
fe679f0eba9d(before the review fixes), dev mode, started with the image named before--mod-dev: a texture mod switched on in Hyrule Field, after leaving Kokiri Forest, logged231 changed paths were loaded by the game, the Mods tab showed the line, and no map was reloaded. A run there ended with the frame rate near 1 fps in its last seconds; the run on the head did not show that.Checks on Linux, before the last rebase: the tests of
api,contentandlongshot-game, clippy with warnings as errors,cargo fmt --check,schema-gen --check,ffi-gen --check,test_sandbox_linux,test_i18n_completeandtest_menu_i18npass. The removed-file test fails without its fix and passes with it. After the review fixes (a2a62dc91eed): the tests ofapi,contentandlongshot-game, clippy of the three,cargo fmt --checkandschema-gen --checkpass; the merged-file test fails without its fix, and the map-load test, with its seam put onmain@3b3ea2cb33e0, fails there. On the head (ad3874ddf604): the tests ofapi,contentandlongshot-game,cargo fmt --checkandschema-gen --checkpass, andtest_no_map_reloadpasses and fails onmain. Clippy of the three passes withlarge_const_arraysandneedless_range_loopallowed, both from files this does not touch. On the head (9e6efbd43c93), with one more test and the loader holding its restart note: the tests and clippy ofapi(same two lints allowed) andcargo fmt --checkpass. Ofmodtool, only the Mods tab's tests were run: one,a mod's long description and the lines after it fit the help card(#3101), fails here and onmain@b77c2f4b.Still to test:
paths of removed filesline (by hand).Measurements
Nothing to measure: no change aims at speed.
Risks
longshot/mods-host: the breaking change above. Only Longshot's own mods may hold its permission.Checklist
Ready for review
main; the title is a Conventional Commit. (Three related fixes in one on purpose.)mise run testpasses (any failure that also fails onmainis named). (Not run on this branch.)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here. (The map-load and map-change tests fail onmain. The two removed-file tests were run without their fixes on this branch, not onmain.)mainand here, for a change that shows on screen. (Not taken.)Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
Tested in game: Tested in game on
fe679f0eba9d: Linux, NVIDIA RTX 3090, driver 620.70.06, headless,kokiri-start, dev mode, sandbox off. A texture mod switched on after leaving Kokiri Forest logged 231 changed paths loaded by the game and the Mods tab showed the restart line, with no map reload. With the layers held, deleting the mod's folder logged 238 paths served as the game's own; two map changes followed with no crash.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
@review
Recommendation: Request changes. Removing a mod while layers are held can leave its cached merged content active, and the two restart-note fixes lack the game-free regression tests required by the repository. The reported run also leaves the cause of a late frame-rate collapse unresolved.
The change stops dev mode from re-entering the map, keeps the restart note aware of files opened on earlier maps, and falls back to game files when held layers point to removed files. It removes the risky automatic reload, but the removal handling does not account for cached merged outputs.
Blocking (2): must change before merging.
game/crates/content/src/layers.rs:495: Checking only the served cache file misses removed inputs to a merged file. (more on the line) Do: Track the source files or mods used by each made file and invalidate affected outputs when an input disappears; add a held-layers test with a merged archive.game/crates/api/src/loader/tests.rs:1811: The tests do not exercise either the removal of automatic travel or the preservation of opened paths across a map load. (more on the line) Do: Add game-free regression tests that open a path, simulate a map transition and change it, and that verify a dev-mode change does not request travel. Make each fail on the base for its respective bug.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
game/crates/api/src/loader/hot.rs:470: The new held-layer scan runs filesystem metadata checks and copies the layer table on the game thread; its effect on frame pacing is unknown. (more on the line) Do: Repeat the held-layer deletion on an otherwise idle machine, comparing frame times before and after the change, and investigate the late slowdown. (@fixdoes its part first: Move the scan and table preparation off the game thread, or limit checks to paths affected by the notification.)game/crates/api/src/loader/hot.rs:467: The removal path has not been exercised on Windows or with the builder's sandbox enabled. (more on the line) Do: Run the held-folder removal with the sandbox enabled and on Windows, checking the fallback and subsequent file loads.@fixcan do L1, L2 and L3.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven as a complete fix. A Linux run showed the restart line after a map change and no reload, and a removed texture folder was followed by two map changes without a crash. The run did not cover cached merged content, and the branch lacks game-free tests for the first two fixes.
Other systems: The changed loader runs on Windows and Linux, with and without the sandbox, and serves ordinary files, merged archives and content-stage outputs. The reported run covered Linux with the sandbox off and ordinary texture files; Windows, the sandbox and cached merged content remain unverified.
Switches: None added, changed or removed.
Reviewed:
2d08a21f0fagainst3b3ea2cb33: Read the repository rules and PR template, commit log, loader and layers changes and their relevant callers, restart-note service, API and Mods tab changes, tests and schema changes. Skimmed translations and generated documentation. The complete large diff and every changed code file were not read in full; docs/review-checklist.md was absent.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no code, scripts or tests were run. The PR reports a Linux game run and pre-rebase checks; head CI is still running.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -460,0 +464,4 @@/// While the layers are held (the list's order or a waiting switch differs), a file of theirs that is no more (its/// mod's folder removed) is served as the game's own, so no open is given a path with nothing there. Only while no/// rebuild runs.fn drop_gone(&mut self, host: &dyn LayersHost) {L4 (should fix): The removal path has not been exercised on Windows or with the builder's sandbox enabled.
When: Players on those configurations can delete a held mod folder, but the reported run only establishes the fallback on Linux with the sandbox off.
Do: Run the held-folder removal with the sandbox enabled and on Windows, checking the fallback and subsequent file loads.
@ -460,0 +467,4 @@fn drop_gone(&mut self, host: &dyn LayersHost) {let Ok(mut b) = host.layers().rebuild() else { return };let disk = &self.cfg.disk;let gone = b.drop_gone(|p| disk.kind(p).is_none());L3 (should fix): The new held-layer scan runs filesystem metadata checks and copies the layer table on the game thread; its effect on frame pacing is unknown.
When: A change while layers are held scans the served paths synchronously. The reported deletion run fell from about 60 fps to 1 fps later in the session, and the reported competing CPU load does not establish the cause.
Do: Repeat the held-layer deletion on an otherwise idle machine, comparing frame times before and after the change, and investigate the late slowdown.
@ -1812,3 +1809,3 @@assert_eq!(served(&LAYERS, &disk, "UI/x.bin").as_deref(), Some(&b"three"[..]), "served anew from its next load");assert_eq!(served(&LAYERS, &disk, "UI/new.bin").as_deref(), Some(&b"added"[..]));assert!(crate::services::reload::RELOAD.offer().later, "said, with no reload offered");assert!(crate::services::restart_note::RESTART_NOTE.due(), "said");L2 (blocking): The tests do not exercise either the removal of automatic travel or the preservation of opened paths across a map load.
When: The existing assertion checks a process-wide restart flag after a file change, without a map transition; it can pass even if map loading starts clearing opened paths again. No test would fail if dev mode resumed requesting the map reload.
Do: Add game-free regression tests that open a path, simulate a map transition and change it, and that verify a dev-mode change does not request travel. Make each fail on the base for its respective bug.
@ -487,0 +492,4 @@self.table = Table::clone(base);self.table.served.retain(|s| !gone(&s.host));for p in self.table.paths.values_mut() {if p.made.as_deref().or(p.copies.last().map(|c| c.host.as_path())).is_some_and(&gone) {L1 (blocking): Checking only the served cache file misses removed inputs to a merged file.
When: When two mods contribute to an archive, the merge serves a file under modcache. If one contributing mod is deleted while layers are held, that cached file still exists, so this condition leaves it live and subsequent opens continue to include the deleted mod's content.
Do: Track the source files or mods used by each made file and invalidate affected outputs when an input disappears; add a held-layers test with a merged archive.
Pushed
a2a62dc91eed, four commits on top of2d08a21f0f04. Not run in the game.a_merged_file_of_a_removed_mod_leaves_the_held_layers(fails without the fix).a_map_load_keeps_the_opened_files_notedruns the map events' dispatch (now a function of its own) and fails when that seam is put onmain. For dev mode's travel there is nothing left to drive: the reload code is gone, andlongshot/mods-host's tests assert thereloadMapedit is refused, which it was not onmain.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
@review
Recommendation: Request changes. The tests still do not exercise removal of automatic travel.
The change stops dev mode from reloading the map, preserves the restart notice across maps, and removes missing files from held layers. The merged-file fix is deliberately coarse, and the new scan suppression misses some later deletions.
Blocking (1): must change before merging.
game/crates/api/src/loader/tests.rs:1811: The tests do not exercise either the removal of automatic travel or the preservation of opened paths across a map load. When: The existing assertion checks a process-wide restart flag after a file change, without a map transition; it can pass even if map loading starts clearing opened paths again. No test would fail if dev mode resumed requesting the map reload. Do: Add game-free regression tests that open a path, simulate a map transition and change it, and that verify a dev-mode change does not request travel. Make each fail on the base for its respective bug.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
game/crates/api/src/loader/hot.rs:470: The new held-layer scan runs filesystem metadata checks and copies the layer table on the game thread; its effect on frame pacing is unknown. When: A change while layers are held scans the served paths synchronously. The reported deletion run fell from about 60 fps to 1 fps later in the session, and the reported competing CPU load does not establish the cause. Do: Repeat the held-layer deletion on an otherwise idle machine, comparing frame times before and after the change, and investigate the late slowdown. (@fixdoes its part first: Move the scan and table preparation off the game thread, or limit checks to paths affected by the notification.)game/crates/api/src/loader/hot.rs:467: The removal path has not been exercised on Windows or with the builder's sandbox enabled. When: Players on those configurations can delete a held mod folder, but the reported run only establishes the fallback on Linux with the sandbox off. Do: Run the held-folder removal with the sandbox enabled and on Windows, checking the fallback and subsequent file loads.@fixcan do L2 and L3.Since the last review (on
2d08a21f0f)Resolved: L1 (Checking only the served cache file misses removed inputs to a merged file.)
Still open: L2 (The tests do not exercise either the removal of automatic travel or the preservation of op…); L3 (The new held-layer scan runs filesystem metadata checks and copies the layer table on the…); L4 (The removal path has not been exercised on Windows or with the builder's sandbox enabled.)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven on the current head. An earlier Linux run showed the restart notice without a map reload and removed a mod folder from held layers; the current head has not been run in the game.
Other systems: The removal path also runs on Windows and under the builder sandbox; neither has been exercised on this head. Merged files from other mods revert to the game's own files when any recorded merge input disappears.
Switches: No switches added, changed, or removed.
Reviewed:
a2a62dc91eagainst3b3ea2cb33: Read the repository rules and pull request template, the changes since the ledger head, and the code and tests around the changed scan, merge inputs, and map event dispatch. The full base-to-head code diff, all changed files, generated files, and translations were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project were executed. The author reports passing targeted checks on this head; the in-game runs were on an earlier head, and CI is still running.
Overlaps and merge order: Not checked; network access is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
Tested in game on
a2a62dc91eed(headless, Linux, NVIDIA RTX 3090, driver 620.70.06, outside dev mode, sandbox off), for L1 and L3:🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
@review
Recommendation: Request changes. The map-load test covers retained opened paths, but there is still no game-free test that changes a file in dev mode and verifies that automatic travel does not occur. The held-layer scan also needs frame-pacing and platform testing.
Dev mode stops automatically reloading the map, restart notices retain knowledge of files opened on earlier maps, and held layers fall back to game files when mod files disappear. The fallback deliberately reverts all merged files when a merged input disappears, and the scan adds filesystem work on the game thread.
Blocking (1): must change before merging.
game/crates/api/src/loader/tests.rs:1811: The tests do not exercise either the removal of automatic travel or the preservation of opened paths across a map load. When: The existing assertion checks a process-wide restart flag after a file change, without a map transition; it can pass even if map loading starts clearing opened paths again. No test would fail if dev mode resumed requesting the map reload. Do: Add game-free regression tests that open a path, simulate a map transition and change it, and that verify a dev-mode change does not request travel. Make each fail on the base for its respective bug.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
game/crates/api/src/loader/hot.rs:470: The new held-layer scan runs filesystem metadata checks and copies the layer table on the game thread; its effect on frame pacing is unknown. When: A change while layers are held scans the served paths synchronously. The reported deletion run fell from about 60 fps to 1 fps later in the session, and the reported competing CPU load does not establish the cause. Do: Repeat the held-layer deletion on an otherwise idle machine, comparing frame times before and after the change, and investigate the late slowdown. (@fixdoes its part first: Move the scan and table preparation off the game thread, or limit checks to paths affected by the notification.)game/crates/api/src/loader/hot.rs:467: The removal path has not been exercised on Windows or with the builder's sandbox enabled. When: Players on those configurations can delete a held mod folder, but the reported run only establishes the fallback on Linux with the sandbox off. Do: Run the held-folder removal with the sandbox enabled and on Windows, checking the fallback and subsequent file loads.@fixcan do L2 and L3.Since the last review (on
a2a62dc91e)Still open: L2 (The tests do not exercise either the removal of automatic travel or the preservation of op…); L3 (The new held-layer scan runs filesystem metadata checks and copies the layer table on the…); L4 (The removal path has not been exercised on Windows or with the builder's sandbox enabled.)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven for the complete fix: the earlier dev-mode run showed the restart line without a map reload, and the head run showed removed files reverting, but dev mode has not been run on this head. This is not a claimed performance improvement; the head scan logged 0 ms in two removal cases, without an idle-PC frame-pacing comparison.
Other systems: Windows and the builder sandbox can affect file visibility and removal behavior and remain untested. Linux with sandbox off was exercised on the head; merged files fall back together, and cached content-stage outputs are not checked when their mod folder is removed.
Switches: No switches added, changed, or removed. The mods-host reloadMap edit and automatic dev-mode reload behavior are removed.
Reviewed:
a2a62dc91eagainst3b3ea2cb33: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the ledger, description and reported runs; inspected the relevant diffs and code for map events, opened paths and held-layer removal. The remaining changed code, documentation, translations and generated material were not read in full. No review checklist was present at docs/review-checklist.md.; nothing run (a code review).Checked and fine:
Testing: No commands that build, run tests, or execute project code were run for this review. The author reports passing targeted tests and checks; CI is still running.
Overlaps and merge order: Not checked.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
a2a62dc91ead3874ddf6Pushed
ad3874ddf604: rebased onto currentmain(no conflicts), with one test added. The head has not been run in the game.tests/test_no_map_reload.pyfails when anything in the mod API other thanworld.travelasks the game for a map change, and fails onmainfor dev mode's reload. It reads the sources rather than driving dev mode: the game's side of a map change needs game state that no game-free test has. The retained paths are covered bya_map_load_keeps_the_opened_files_noted.a2a62dc91eed; an idle-PC comparison is still not done.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
@review
Recommendation: Request changes. The map-load test now checks retained paths, but the new source scan does not exercise a dev-mode file change or verify its effect on travel. Frame pacing and the Windows and sandbox removal paths also remain unmeasured.
The change stops dev mode from automatically reloading the map, retains the restart note across maps, and stops held layers serving removed files. It removes the reload machinery at the cost of requiring mod authors to restart for some changes and temporarily reverting affected merged files.
Blocking (1): must change before merging.
game/crates/api/src/loader/tests.rs:1811: The tests do not exercise either the removal of automatic travel or the preservation of opened paths across a map load. When: The existing assertion checks a process-wide restart flag after a file change, without a map transition; it can pass even if map loading starts clearing opened paths again. No test would fail if dev mode resumed requesting the map reload. Do: Add game-free regression tests that open a path, simulate a map transition and change it, and that verify a dev-mode change does not request travel. Make each fail on the base for its respective bug.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
game/crates/api/src/loader/hot.rs:470: The new held-layer scan runs filesystem metadata checks and copies the layer table on the game thread; its effect on frame pacing is unknown. When: A change while layers are held scans the served paths synchronously. The reported deletion run fell from about 60 fps to 1 fps later in the session, and the reported competing CPU load does not establish the cause. Do: Repeat the held-layer deletion on an otherwise idle machine, comparing frame times before and after the change, and investigate the late slowdown. (@fixdoes its part first: Move the scan and table preparation off the game thread, or limit checks to paths affected by the notification.)game/crates/api/src/loader/hot.rs:467: The removal path has not been exercised on Windows or with the builder's sandbox enabled. When: Players on those configurations can delete a held mod folder, but the reported run only establishes the fallback on Linux with the sandbox off. Do: Run the held-folder removal with the sandbox enabled and on Windows, checking the fallback and subsequent file loads.@fixcan do L2 and L3.Since the last review (on
a2a62dc91e)Still open: L2 (The tests do not exercise either the removal of automatic travel or the preservation of op…); L3 (The new held-layer scan runs filesystem metadata checks and copies the layer table on the…); L4 (The removal path has not been exercised on Windows or with the builder's sandbox enabled.)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven for the full fix. The reported Linux dev-mode run showed the restart line after a map change without reloading the map; held-layer removals logged 0 ms for 3 and 238 paths on an earlier head. The current head has not been run in game.
Other systems: The removal path affects filesystem access on Windows and under the builder sandbox; neither has been exercised. The held-layer scan runs on the game thread, so its frame-pacing cost remains unknown.
Switches: None added, changed or removed.
Reviewed:
ad3874ddf6againstf7d6d3bf61: Read AGENTS.md, CONTRIBUTING.md, the pull request template, restart_note.rs and test_no_map_reload.py in full. Read the relevant hot.rs and game.rs diffs, travel call sites, and the view.ts diff; the remaining changed files and project standards were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports passing game-free checks on HEAD and Linux game runs on earlier revisions; CI is still running.
Overlaps and merge order: Not checked; network access is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
Pushed
9e6efbd43c93for L2. Not run in the game.a_file_changed_after_a_map_load_is_noted_and_takes_no_one_to_a_mapopens a file, runs a map load, changes the file, and asserts that the change is noted (on a note of the test's own, not the process's) and that nothing asked the game for a map change in between.On
main, dev mode's reload asked for the change only with the game in play, which no game-free test here has, so this test is not claimed to fail there for the travel half.test_no_map_reload.pyis the check that does fail onmain. Faking a running game to drive it is left out on purpose, by the author's choice.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
@review
Recommendation: Request changes. The new test covers retained opened paths, but it does not exercise the in-play dev-mode reload behavior that caused the unwanted travel. The platform and frame-pacing runs also remain outstanding.
The change stops dev mode from reloading the map, retains opened-file tracking across maps, and falls back to game files when held mod layers lose inputs. It removes a disruptive reload at the cost of requiring restarts for some changes and using coarse fallback for merged files.
Blocking (1): must change before merging.
game/crates/api/src/loader/tests.rs:1811: The new test covers the retained paths but does not exercise the in-play dev-mode automatic travel that caused the original bug. When: A file changes in dev mode while the game is in play; the former reload could ask for travel, but this test's setup does not put the game in that state and therefore would not detect that behavior. Do: Add a game-free behavioral test that drives the dev-mode change in an in-play state and verifies no automatic map-change request; it should fail with the former reload behavior.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
game/crates/api/src/loader/hot.rs:470: The new held-layer scan runs filesystem metadata checks and copies the layer table on the game thread; its effect on frame pacing is unknown. When: A change while layers are held scans the served paths synchronously. The reported deletion run fell from about 60 fps to 1 fps later in the session, and the reported competing CPU load does not establish the cause. Do: Repeat the held-layer deletion on an otherwise idle machine, comparing frame times before and after the change, and investigate the late slowdown. (@fixdoes its part first: Move the scan and table preparation off the game thread, or limit checks to paths affected by the notification.)game/crates/api/src/loader/hot.rs:467: The removal path has not been exercised on Windows or with the builder's sandbox enabled. When: Players on those configurations can delete a held mod folder, but the reported run only establishes the fallback on Linux with the sandbox off. Do: Run the held-folder removal with the sandbox enabled and on Windows, checking the fallback and subsequent file loads.@fixcan do L2 and L3.Since the last review (on
ad3874ddf6)Still open: L2 (The new test covers the retained paths but does not exercise the in-play dev-mode automati…); L3 (The new held-layer scan runs filesystem metadata checks and copies the layer table on the…); L4 (The removal path has not been exercised on Windows or with the builder's sandbox enabled.)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven on the current head: an earlier Linux run showed the restart line without a reload, and another showed removed paths reverting to game files; the current head has not been run in game.
Other systems: The held-layer removal path affects filesystem and sandbox behavior on Linux and Windows. Windows and builder-sandbox runs remain outstanding; the reported Linux runs used NVIDIA hardware with the sandbox off.
Switches: No switches added, changed, or removed.
Reviewed:
9e6efbd43cagainstf7d6d3bf61: Read the changes sincead3874ddf6, the new test and its setup, the travel queue interface, AGENTS.md, CONTRIBUTING.md, and the pull request template. The full pull request diff and all changed files were not read in full; docs/review-checklist.md was absent.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run for this review. The author reports passing API tests and clippy on the head, plus earlier Linux in-game runs; CI is still running.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
WIP: fix(mods)!: dev mode stops reloading the map, and the restart line and held layers keep up with file changesto fix(mods)!: dev mode stops reloading the map, and the restart line and held layers keep up with file changes