[PR #3891] [MERGED] Launcher: show where native mods are installed and what each instance's build plays #5270

Closed
opened 2026-11-03 05:11:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3891
Author: @levzzz5154
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: launcher/native-mods-where


📝 Commits (10+)

  • aba29be Launcher: native mods are on by default; Build moves to the Mods page
  • d9a2f15 Merge launcher/native-mods-on-by-default (#3855) into launcher/native-mods-where
  • 8ee3055 Launcher: show where native mods are installed and what each instance's build plays
  • f2a3a76 Launcher: simpler Build condition for clippy 1.95
  • 32cce66 Launcher: call the Horizon update button "Rebuild on Horizon X"
  • 32e8e51 Merge main into native-mods-on-by-default
  • ddf1be8 Launcher i18n: drop removed native-mods strings, add Polish for the new ones
  • 2e52f01 Merge main into native-mods-where
  • e7fae3d Launcher i18n: drop removed native-mods strings, add Polish for the new ones
  • d2c4e9a Merge main into native-mods-on-by-default; the version-mismatch panel moves to the Mods page's Native build row

📊 Changes

18 files changed (+716 additions, -235 deletions)

View changed files

📝 docs/launcher-commands.md (+1 -1)
📝 docs/native-mods.md (+25 -12)
📝 launcher/lang/de.json (+17 -6)
📝 launcher/lang/es.json (+17 -6)
📝 launcher/lang/fr.json (+17 -6)
📝 launcher/lang/pl.json (+17 -6)
📝 launcher/lang/ru.json (+17 -6)
📝 launcher/lang/uk.json (+17 -6)
📝 launcher/lang/zh.json (+17 -6)
📝 launcher/src/backend.rs (+2 -6)
📝 launcher/src/cli.rs (+11 -16)
📝 launcher/src/github_mods_page.rs (+1 -2)
📝 launcher/src/instances_page.rs (+10 -0)
📝 launcher/src/lib.rs (+1 -0)
📝 launcher/src/main.rs (+44 -62)
📝 launcher/src/mods_page.rs (+196 -34)
📝 launcher/src/native_mods.rs (+23 -60)
➕ launcher/src/native_status.rs (+283 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

Stacked on #3870 and #3855. This branch is #3870's with #3855 merged in (one merge commit), so until both merge its diff includes theirs. PR 3's own change is the last two commits (d9a2f157a..HEAD: 12 files, +351 −74, of which launcher code +243 −47, the rest is translations and docs).

Players couldn't tell where a native mod was installed or what the game they play was built with. This PR is the third step of the native mods rework.

What changes

  • Where a mod is installed. Each installed native mod's row on Mods → Installed now says "Installed in {instance}" and has Open folder, which opens <instance>/horizon-native-mods/. The "Installs into {instance}" line above the list now shows even when there is only one instance. Before, it only appeared when there were two or more.
  • Build status per instance. The "Native build" row from #3855 is now "Native build of {instance}" and always describes the instance picked on the left:
    • a badge: Not built (the instance doesn't play a native-* version), Needs rebuild (the mods turned on differ from the build's native-mods.json) or Up to date;
    • "Plays native-…, built on Horizon {version}", taken from the build's native-mods.json base;
    • a build's progress and error show only on the instance being built. While a build runs, other instances say "{instance} is building: one build at a time." and offer no Build.
    • native_status::State splits #3855's NeedsBuild into NotBuilt and Outdated.
  • Rebuild on a newer Horizon. When native_mods::update_for would find a newer installed release or Nightly, the row shows Rebuild on Horizon {version} next to Build. It isn't called "Update" because a mod row's "Update to 2.0.0" sits right below it and does something else. It opens the same trust warning, with one more line: the update moves the instance to that Horizon and compiles from scratch, so it takes longer (up to 30 minutes). The build then uses exactly that version as its base. Build alone never changes the Horizon version.
  • Instance list. An instance that plays a native build shows "Native build · Nightly 10-28" (or the release tag) instead of "Ready · native-0c02067-…". The base is read once per build tag and cached.
  • The warning closes when the player picks another instance, so it can't build the mods of a different instance than the one it named.
  • New strings in all six launcher languages. docs/native-mods.md describes the new row.

Not in this PR (that's PR 4): a list of every native build, with Delete.

How it was checked

  • Unit tests for the new logic: the state choice (NotBuilt, Outdated, UpToDate, NoMods) and the Horizon labels (horizon_label, Build::horizon_short).
  • Screenshots of the real launcher with faked native-* versions (debug build, scratch homes): Up to date with Rebuild on Horizon, Needs rebuild with Rebuild on Horizon and Build, Not built with Build, and the Rebuild on Horizon warning. The warning screenshot used a temporary local patch to open the warning, because XTEST clicks don't reach the window on this Wayland session. That patch is not in this branch.

pr_ready (tools/pr_ready.py --quick --base hr/main on cachyos-x8664, against hr/main at 7ebf7d26c, 33 s)

Check Result
Scope ⚠️ 19 files, +1121 −387; 1394 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ✅ 423 passed (24 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 ✅ (1 s)
launcher clippy ✅ (4 s)
launcher tests ✅ 284 passed (3 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 line counts #3870 and #3855 too. PR 3 alone is about 350 lines.

🤖 Generated with Claude Code


🔄 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/3891 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `launcher/native-mods-where` --- ### 📝 Commits (10+) - [`aba29be`](https://github.com/horizon-rust/horizon/commit/aba29be6af0480c0663992641ef32940ea1e938e) Launcher: native mods are on by default; Build moves to the Mods page - [`d9a2f15`](https://github.com/horizon-rust/horizon/commit/d9a2f157a39a8bf48b1c796261ab71c11fddbbe9) Merge launcher/native-mods-on-by-default (#3855) into launcher/native-mods-where - [`8ee3055`](https://github.com/horizon-rust/horizon/commit/8ee30558dada58d7e43003a3ab1861aabea9291b) Launcher: show where native mods are installed and what each instance's build plays - [`f2a3a76`](https://github.com/horizon-rust/horizon/commit/f2a3a76c07c73a4f6f74e1b1bfd244a4153760df) Launcher: simpler Build condition for clippy 1.95 - [`32cce66`](https://github.com/horizon-rust/horizon/commit/32cce66761e314880aae2f0f9b4403a8dd50877d) Launcher: call the Horizon update button "Rebuild on Horizon X" - [`32e8e51`](https://github.com/horizon-rust/horizon/commit/32e8e51cfc9f0dad59f7ff5626fefc5f7189261c) Merge main into native-mods-on-by-default - [`ddf1be8`](https://github.com/horizon-rust/horizon/commit/ddf1be8050a000840e131121207f8954b29d6a9e) Launcher i18n: drop removed native-mods strings, add Polish for the new ones - [`2e52f01`](https://github.com/horizon-rust/horizon/commit/2e52f01d71bd1aa4c48cc51e7b1c931734a1e644) Merge main into native-mods-where - [`e7fae3d`](https://github.com/horizon-rust/horizon/commit/e7fae3d587316aa9dbf93aee3da0ebc9f3ed0ce8) Launcher i18n: drop removed native-mods strings, add Polish for the new ones - [`d2c4e9a`](https://github.com/horizon-rust/horizon/commit/d2c4e9ac8789102310308e8b75538cfa8c0ad529) Merge main into native-mods-on-by-default; the version-mismatch panel moves to the Mods page's Native build row ### 📊 Changes **18 files changed** (+716 additions, -235 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+1 -1) 📝 `docs/native-mods.md` (+25 -12) 📝 `launcher/lang/de.json` (+17 -6) 📝 `launcher/lang/es.json` (+17 -6) 📝 `launcher/lang/fr.json` (+17 -6) 📝 `launcher/lang/pl.json` (+17 -6) 📝 `launcher/lang/ru.json` (+17 -6) 📝 `launcher/lang/uk.json` (+17 -6) 📝 `launcher/lang/zh.json` (+17 -6) 📝 `launcher/src/backend.rs` (+2 -6) 📝 `launcher/src/cli.rs` (+11 -16) 📝 `launcher/src/github_mods_page.rs` (+1 -2) 📝 `launcher/src/instances_page.rs` (+10 -0) 📝 `launcher/src/lib.rs` (+1 -0) 📝 `launcher/src/main.rs` (+44 -62) 📝 `launcher/src/mods_page.rs` (+196 -34) 📝 `launcher/src/native_mods.rs` (+23 -60) ➕ `launcher/src/native_status.rs` (+283 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. **Stacked on #3870 and #3855.** This branch is #3870's with #3855 merged in (one merge commit), so until both merge its diff includes theirs. PR 3's own change is the last two commits (`d9a2f157a..HEAD`: 12 files, +351 −74, of which launcher code +243 −47, the rest is translations and docs). Players couldn't tell where a native mod was installed or what the game they play was built with. This PR is the third step of the native mods rework. ## What changes - **Where a mod is installed.** Each installed native mod's row on Mods → Installed now says "Installed in {instance}" and has **Open folder**, which opens `<instance>/horizon-native-mods/`. The "Installs into {instance}" line above the list now shows even when there is only one instance. Before, it only appeared when there were two or more. - **Build status per instance.** The "Native build" row from #3855 is now "Native build of {instance}" and always describes the instance picked on the left: - a badge: **Not built** (the instance doesn't play a `native-*` version), **Needs rebuild** (the mods turned on differ from the build's `native-mods.json`) or **Up to date**; - "Plays native-…, built on Horizon {version}", taken from the build's `native-mods.json` `base`; - a build's progress and error show only on the instance being built. While a build runs, other instances say "{instance} is building: one build at a time." and offer no Build. - `native_status::State` splits #3855's `NeedsBuild` into `NotBuilt` and `Outdated`. - **Rebuild on a newer Horizon.** When `native_mods::update_for` would find a newer installed release or Nightly, the row shows **Rebuild on Horizon {version}** next to Build. It isn't called "Update" because a mod row's "Update to 2.0.0" sits right below it and does something else. It opens the same trust warning, with one more line: the update moves the instance to that Horizon and compiles from scratch, so it takes longer (up to 30 minutes). The build then uses exactly that version as its base. Build alone never changes the Horizon version. - **Instance list.** An instance that plays a native build shows "Native build · Nightly 10-28" (or the release tag) instead of "Ready · native-0c02067-…". The base is read once per build tag and cached. - The warning closes when the player picks another instance, so it can't build the mods of a different instance than the one it named. - New strings in all six launcher languages. `docs/native-mods.md` describes the new row. Not in this PR (that's PR 4): a list of every native build, with Delete. ## How it was checked - Unit tests for the new logic: the state choice (`NotBuilt`, `Outdated`, `UpToDate`, `NoMods`) and the Horizon labels (`horizon_label`, `Build::horizon_short`). - Screenshots of the real launcher with faked `native-*` versions (debug build, scratch homes): Up to date with Rebuild on Horizon, Needs rebuild with Rebuild on Horizon and Build, Not built with Build, and the Rebuild on Horizon warning. The warning screenshot used a temporary local patch to open the warning, because XTEST clicks don't reach the window on this Wayland session. That patch is not in this branch. **pr_ready** (`tools/pr_ready.py --quick --base hr/main` on cachyos-x8664, against hr/main at 7ebf7d26c, 33 s) | Check | Result | | --- | --- | | Scope | ⚠️ 19 files, +1121 −387; 1394 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ✅ 423 passed (24 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 | ✅ (1 s) | | launcher clippy | ✅ (4 s) | | launcher tests | ✅ 284 passed (3 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 line counts #3870 and #3855 too. PR 3 alone is about 350 lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:25 +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#5270
No description provided.