[PR #5714] [MERGED] Fix native mod lists and Build visibility in the launcher #6456

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

📋 Pull Request Information

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

Base: main ← Head: fix/native-mod-list


📝 Commits (1)

  • eb46a6d fix(launcher): unify installed native mods and expose Build

📊 Changes

4 files changed (+385 additions, -85 deletions)

View changed files

📝 launcher/src/github_mods_page.rs (+98 -57)
📝 launcher/src/instance_mods.rs (+108 -19)
📝 launcher/src/mods_page.rs (+35 -8)
📝 launcher/src/native_status.rs (+144 -1)

📄 Description

🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6), not by TiggerTakkyTTT personally.

What and why

Fixes #5690.

GitHub native mods appeared below the import field, separately from installed mods. Build was gated on a browser-tracked native mod, so an instance with only GitHub installs had no Build button.

Discover native files in the instance folder and include GitHub and manually copied .hnmod files in the same installed list as registry mods, without duplicating registry rows. Keep GitHub source/update actions, add on/off and removal controls for those files, and refresh the list when files or their metadata change. Both the Mods page and Home's Mods tab show these mods and the existing native-build controls. Native mods remain exclusive to Horizon instances; manually copied mods still require turning on.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Horizon-only launcher UI; no vanilla gameplay changes.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main, against upstream/main at c51dcda01, 1 min 32 s)

Check Result
Scope ⚠️ 6 files, +413 −85; mixes game, launcher
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed (50 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (30 s)
launcher tests ✅ 360 passed (10 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The scope above includes two pre-existing untracked text files; neither is included in this four-file change.

Additional validation:

  • All 66 launcher binary tests passed, including the Home Mods list regressions.
  • Built and visually checked the launcher in isolated profiles with dummy registry, GitHub, and local native bundles. All three share the installed list and Home count. With only the GitHub bundle installed, Build is visible and opens the existing trust prompt. The prompt was cancelled; no native mod build was started.
  • Regression coverage checks manifest versions and IDs (including renamed files), no duplicate registry rows, enabled/disabled state, stale GitHub sidecars, unreadable files, and Java-instance separation.

🔄 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/5714 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/native-mod-list` --- ### 📝 Commits (1) - [`eb46a6d`](https://github.com/horizon-rust/horizon/commit/eb46a6d61929b854601d1aa7e76f4968769fb11d) fix(launcher): unify installed native mods and expose Build ### 📊 Changes **4 files changed** (+385 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/github_mods_page.rs` (+98 -57) 📝 `launcher/src/instance_mods.rs` (+108 -19) 📝 `launcher/src/mods_page.rs` (+35 -8) 📝 `launcher/src/native_status.rs` (+144 -1) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6), not by TiggerTakkyTTT personally. ## What and why Fixes #5690. GitHub native mods appeared below the import field, separately from installed mods. Build was gated on a browser-tracked native mod, so an instance with only GitHub installs had no Build button. Discover native files in the instance folder and include GitHub and manually copied `.hnmod` files in the same installed list as registry mods, without duplicating registry rows. Keep GitHub source/update actions, add on/off and removal controls for those files, and refresh the list when files or their metadata change. Both the Mods page and Home's Mods tab show these mods and the existing native-build controls. Native mods remain exclusive to Horizon instances; manually copied mods still require turning on. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Horizon-only launcher UI; no vanilla gameplay changes. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main`, against upstream/main at c51dcda01, 1 min 32 s) | Check | Result | | --- | --- | | Scope | ⚠️ 6 files, +413 −85; mixes game, launcher | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed (50 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (30 s) | | launcher tests | ✅ 360 passed (10 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The scope above includes two pre-existing untracked text files; neither is included in this four-file change. Additional validation: - All 66 launcher binary tests passed, including the Home Mods list regressions. - Built and visually checked the launcher in isolated profiles with dummy registry, GitHub, and local native bundles. All three share the installed list and Home count. With only the GitHub bundle installed, Build is visible and opens the existing trust prompt. The prompt was cancelled; no native mod build was started. - Regression coverage checks manifest versions and IDs (including renamed files), no duplicate registry rows, enabled/disabled state, stale GitHub sidecars, unreadable files, and Java-instance separation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:20:56 +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#6456
No description provided.