[PR #5925] [MERGED] Refresh Home Mods after native files change during a pending read #6565

Closed
opened 2026-11-03 06:23:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5925
Author: @finalpantasy
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-native-mod-refresh


📝 Commits (2)

  • f5014f4 Fix Home Mods refresh after native files change during a read
  • ff45f54 Merge upstream main to include its existing CI lint correction

📊 Changes

1 file changed (+108 additions, -13 deletions)

View changed files

📝 launcher/src/instance_mods.rs (+108 -13)

📄 Description

🤖 Opened by finalpantasy's AI agent (OpenAI Codex; GPT-6 Luna implementation and GPT-6.1 Sol review), not by finalpantasy personally.

CI baseline update

Current head ff45f545ce1e69b8051c1f8deef3c46ae0afd018 merges upstream main 8c02c0b8534e11b7bb8be14238b140a8534280a0, which already fixes the unrelated Rust 1.99 needless_borrow failure in horizon-world. The refresh patch remains exactly one file, +108 / -13, relative to that main revision; it is unchanged from the reviewed original.

The validation table below records the original f5014f4 source baseline. A local check of the merged source passed the public-tree check, 515 Python tests, and formatting, but compilation/tests could not resolve the new GPUI Fast and server dependencies in the offline cache. Those merged-tree compilation checks are not claimed as passing; this draft's CI must validate the new head. No local launcher/game adoption follows from this maintenance merge.

What and why

Fixes #5907.

When a native file changes while Home Mods is loading, the earlier directory snapshot can overwrite the pending refresh and remain cached. Capture the observed fingerprint when a read starts and use it when completion decides whether the list is fresh. A changed fingerprint leaves another read pending, so the final list includes the new files.

The deterministic regression uses real temporary native-mod files and the production discovery/fingerprint code. It captures a one-file listing, writes a second file while the first result is pending, delivers that earlier result, and requires a follow-up read containing both files. It failed on the old completion behavior and passes with this fix. The test controls delivery order without timing sleeps.

The change is one launcher file, +108 / -13. Existing same-fingerprint invalidations and home-switch generation handling remain outside this correction.

Kind

  • parity
  • bug: a crash or a breakage
  • perf
  • feature
  • extra
  • tooling
  • docs

Vanilla reference

Horizon-only launcher cache behavior; no vanilla gameplay change.

Other projects' code

None. This modifies Horizon's existing launcher code; no external implementation was copied.

Self-check

python tools/pr_ready.py --quick --base eb46a6d61929b854601d1aa7e76f4968769fb11d, Windows, Rust 1.96.0:

Check Result
Scope 1 file, +108 / -13
Cargo.lock unchanged
Public tree pass
Python tests 511 passed
Launcher rustfmt pass
Launcher Clippy, all targets, warnings denied pass
Launcher library tests 351 passed; 5 existing ignores
Separate library + binary test run 417 passed; 6 existing ignores
New deterministic regression old completion FAIL, fixed completion PASS
Gameplay parity not run (--quick; launcher-only change)

The final self-check exited 0. The separate full test command also exited 0; its owned runner cleaned surviving test child processes and confirmed cleanup, as observed before this change. Tests used fresh private homes; existing launcher executables remained unchanged. The ignored tests cover the real OS keychain, live services/installers, a benchmark, and an interactive desktop. Linux/macOS and CI's Rust 1.99 were not run locally.

Screenshots

No GUI layout changes. This PR verifies asynchronous read ordering with a deterministic real-folder regression; a visible-window reproduction is not claimed.

🤖 Generated with OpenAI Codex


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5925 **Author:** [@finalpantasy](https://github.com/finalpantasy) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-native-mod-refresh` --- ### 📝 Commits (2) - [`f5014f4`](https://github.com/horizon-rust/horizon/commit/f5014f4060e8e27c2151309d293733ec624d6b6c) Fix Home Mods refresh after native files change during a read - [`ff45f54`](https://github.com/horizon-rust/horizon/commit/ff45f545ce1e69b8051c1f8deef3c46ae0afd018) Merge upstream main to include its existing CI lint correction ### 📊 Changes **1 file changed** (+108 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/instance_mods.rs` (+108 -13) </details> ### 📄 Description > 🤖 Opened by finalpantasy's AI agent (OpenAI Codex; GPT-6 Luna implementation and GPT-6.1 Sol review), not by finalpantasy personally. ## CI baseline update Current head `ff45f545ce1e69b8051c1f8deef3c46ae0afd018` merges upstream main `8c02c0b8534e11b7bb8be14238b140a8534280a0`, which already fixes the unrelated Rust 1.99 `needless_borrow` failure in `horizon-world`. The refresh patch remains exactly one file, +108 / -13, relative to that main revision; it is unchanged from the reviewed original. The validation table below records the original `f5014f4` source baseline. A local check of the merged source passed the public-tree check, 515 Python tests, and formatting, but compilation/tests could not resolve the new GPUI Fast and server dependencies in the offline cache. Those merged-tree compilation checks are not claimed as passing; this draft's CI must validate the new head. No local launcher/game adoption follows from this maintenance merge. ## What and why Fixes #5907. When a native file changes while Home Mods is loading, the earlier directory snapshot can overwrite the pending refresh and remain cached. Capture the observed fingerprint when a read starts and use it when completion decides whether the list is fresh. A changed fingerprint leaves another read pending, so the final list includes the new files. The deterministic regression uses real temporary native-mod files and the production discovery/fingerprint code. It captures a one-file listing, writes a second file while the first result is pending, delivers that earlier result, and requires a follow-up read containing both files. It failed on the old completion behavior and passes with this fix. The test controls delivery order without timing sleeps. The change is one launcher file, +108 / -13. Existing same-fingerprint invalidations and home-switch generation handling remain outside this correction. ## Kind - [ ] parity - [x] bug: a crash or a breakage - [ ] perf - [ ] feature - [ ] extra - [ ] tooling - [ ] docs ## Vanilla reference Horizon-only launcher cache behavior; no vanilla gameplay change. ## Other projects' code None. This modifies Horizon's existing launcher code; no external implementation was copied. ## Self-check `python tools/pr_ready.py --quick --base eb46a6d61929b854601d1aa7e76f4968769fb11d`, Windows, Rust 1.96.0: | Check | Result | | --- | --- | | Scope | 1 file, +108 / -13 | | Cargo.lock | unchanged | | Public tree | pass | | Python tests | 511 passed | | Launcher rustfmt | pass | | Launcher Clippy, all targets, warnings denied | pass | | Launcher library tests | 351 passed; 5 existing ignores | | Separate library + binary test run | 417 passed; 6 existing ignores | | New deterministic regression | old completion FAIL, fixed completion PASS | | Gameplay parity | not run (`--quick`; launcher-only change) | The final self-check exited 0. The separate full test command also exited 0; its owned runner cleaned surviving test child processes and confirmed cleanup, as observed before this change. Tests used fresh private homes; existing launcher executables remained unchanged. The ignored tests cover the real OS keychain, live services/installers, a benchmark, and an interactive desktop. Linux/macOS and CI's Rust 1.99 were not run locally. ## Screenshots No GUI layout changes. This PR verifies asynchronous read ordering with a deterministic real-folder regression; a visible-window reproduction is not claimed. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6565
No description provided.