[PR #2792] [MERGED] Launcher: an opt-in Nightly setting that plays reviewed fixes in their own instance #4619

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2792
Author: @ludovic111
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: feat/nightly-launcher


📝 Commits (1)

  • 66dabf5 launcher: an opt-in Nightly setting that plays in its own instance

📊 Changes

8 files changed (+438 additions, -11 deletions)

View changed files

📝 crates/horizon-release-sign/src/lib.rs (+73 -4)
📝 launcher/lang/fr.json (+8 -1)
📝 launcher/lang/ru.json (+8 -1)
📝 launcher/src/backend.rs (+24 -5)
📝 launcher/src/lib.rs (+1 -0)
📝 launcher/src/main.rs (+119 -0)
➕ launcher/src/nightly.rs (+154 -0)
📝 launcher/src/signed.rs (+51 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Part 2 of the opt-in Nightly channel (#2681). The build workflow is #2779. This PR adds the launcher's setting; it doesn't depend on #2779 to merge. Until the first nightly is published, the setting says "No nightly build yet."

  • The setting: Settings > Updates > Nightly builds, off by default, with one line saying what it is: "Reviewed fixes not released yet; may break." It is translated into French and Russian.
  • Turning it on:
    • The launcher fetches the nightly pre-release and installs it as its own version, nightly-<date>-<commit>.
    • It makes a Nightly instance, empty apart from the player's options and offline name, pins that version to it, and selects it.
  • Updates: every 30-minute update check also installs a newer nightly into that instance and removes the older nightly version.
  • Back to the release in one click: choose Horizon in the sidebar. The release instance and its worlds are never touched. Turning Nightly off also selects Horizon again; the Nightly instance and its worlds stay.
  • The release channel ignores nightlies: nightly-* versions are never vX.Y.Z tags. They sort below every release, so they are never offered as an update and never become the launcher's own version.

Signatures: one key, two channels (the orchestrator's decision)

  • Nightlies are signed with the release key, over the message horizon release nightly.
  • The release path refuses nightly tags outright. horizon_release_sign::signed_digest, which the launcher and horizon-server update use for releases, refuses nightly and nightly-* before reading any signature.
  • Nightly installs check a different message. They go through the new nightly_digest, which verifies against the nightly channel's message, so a release's signed list replayed as a nightly is refused.
  • Tests:
    • horizon-release-sign: nightly_and_release_signatures_never_pass_for_each_other. A nightly-signed list is refused under v0.2.81, v2026.10.28 and 0.2.81, and under the nightly and nightly-<date> tags on the release path. A release-signed list is refused by the nightly path.
    • Launcher: signed::the_release_channel_refuses_nightly_signatures, the same check through the launcher's download path.
    • Launcher: nightly::* tests for version naming, the update decision, and parsing only the nightly pre-release.

Screenshots

Off (dark, English):
off

On, before any nightly is published (dark, English):
on

On (light, French):
on fr

How tested

launcher/: cargo fmt --check                                                                  ok
launcher/: cargo clippy --all-targets --locked --features gpui/runtime_shaders -- -D warnings  ok
launcher/: cargo test --locked --lib --features gpui/runtime_shaders                          197 passed (4 new)
cargo test -p horizon-release-sign                                                            8 + 4 passed (1 new)
cargo clippy -p horizon-release-sign --all-targets -- -D warnings                             ok

I ran the launcher on macOS with throwaway homes: Settings with Nightly off and on, in dark/English and light/French. With Nightly on, the real lookup of releases/tags/nightly (none published yet) gave "No nightly build yet."

Not tested yet: a real nightly install (download, signature, instance, switching back). No nightly pre-release exists until #2779 is merged and its first run publishes one. Next step after that: install it with a throwaway home and screenshot the Nightly instance.

Needs Ludovic

Nothing.

🤖 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/2792 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/nightly-launcher` --- ### 📝 Commits (1) - [`66dabf5`](https://github.com/horizon-rust/horizon/commit/66dabf51ee381104a71587453a6eda31a380247d) launcher: an opt-in Nightly setting that plays in its own instance ### 📊 Changes **8 files changed** (+438 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-release-sign/src/lib.rs` (+73 -4) 📝 `launcher/lang/fr.json` (+8 -1) 📝 `launcher/lang/ru.json` (+8 -1) 📝 `launcher/src/backend.rs` (+24 -5) 📝 `launcher/src/lib.rs` (+1 -0) 📝 `launcher/src/main.rs` (+119 -0) ➕ `launcher/src/nightly.rs` (+154 -0) 📝 `launcher/src/signed.rs` (+51 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Part 2 of the opt-in Nightly channel (#2681). The build workflow is #2779. This PR adds the launcher's setting; it doesn't depend on #2779 to merge. Until the first nightly is published, the setting says "No nightly build yet." - **The setting:** Settings > Updates > **Nightly builds**, off by default, with one line saying what it is: "Reviewed fixes not released yet; may break." It is translated into French and Russian. - **Turning it on:** - The launcher fetches the `nightly` pre-release and installs it as its own version, `nightly-<date>-<commit>`. - It makes a **Nightly instance**, empty apart from the player's options and offline name, pins that version to it, and selects it. - **Updates:** every 30-minute update check also installs a newer nightly into that instance and removes the older nightly version. - **Back to the release in one click:** choose **Horizon** in the sidebar. The release instance and its worlds are never touched. Turning Nightly off also selects Horizon again; the Nightly instance and its worlds stay. - **The release channel ignores nightlies:** `nightly-*` versions are never `vX.Y.Z` tags. They sort below every release, so they are never offered as an update and never become the launcher's own version. ### Signatures: one key, two channels (the orchestrator's decision) - Nightlies are signed with the release key, over the message `horizon release nightly`. - **The release path refuses nightly tags outright.** `horizon_release_sign::signed_digest`, which the launcher and `horizon-server update` use for releases, refuses `nightly` and `nightly-*` before reading any signature. - **Nightly installs check a different message.** They go through the new `nightly_digest`, which verifies against the nightly channel's message, so a release's signed list replayed as a nightly is refused. - **Tests:** - `horizon-release-sign`: `nightly_and_release_signatures_never_pass_for_each_other`. A nightly-signed list is refused under `v0.2.81`, `v2026.10.28` and `0.2.81`, and under the `nightly` and `nightly-<date>` tags on the release path. A release-signed list is refused by the nightly path. - Launcher: `signed::the_release_channel_refuses_nightly_signatures`, the same check through the launcher's download path. - Launcher: `nightly::*` tests for version naming, the update decision, and parsing only the `nightly` pre-release. ## Screenshots Off (dark, English): ![off](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/nightly-1/nightly-launcher/off-dark-en-updates.png) On, before any nightly is published (dark, English): ![on](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/nightly-1/nightly-launcher/on-dark-en-updates.png) On (light, French): ![on fr](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/nightly-1/nightly-launcher/on-light-fr-updates.png) ## How tested ``` launcher/: cargo fmt --check ok launcher/: cargo clippy --all-targets --locked --features gpui/runtime_shaders -- -D warnings ok launcher/: cargo test --locked --lib --features gpui/runtime_shaders 197 passed (4 new) cargo test -p horizon-release-sign 8 + 4 passed (1 new) cargo clippy -p horizon-release-sign --all-targets -- -D warnings ok ``` I ran the launcher on macOS with throwaway homes: Settings with Nightly off and on, in dark/English and light/French. With Nightly on, the real lookup of `releases/tags/nightly` (none published yet) gave "No nightly build yet." **Not tested yet:** a real nightly install (download, signature, instance, switching back). No nightly pre-release exists until #2779 is merged and its first run publishes one. Next step after that: install it with a throwaway home and screenshot the Nightly instance. ## Needs Ludovic Nothing. 🤖 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:06:42 +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#4619
No description provided.