[PR #1026] [MERGED] Launcher: a Servers page to host a Horizon server, with friends over Tailscale #3000

Closed
opened 2026-11-02 16:00:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-servers-page


📝 Commits (10+)

  • 627837e Launcher: servers hosted through horizon-server (backend and CLI)
  • 4768d3f launcher: a Servers page that creates, runs and manages horizon-server servers (WIP)
  • a8a00aa launcher: Friends over the internet: Tailscale status, invitations and a safe access rule
  • d2898fc launcher README: the Servers page
  • 8f51e68 launcher: draw the keyboard focus ring (a shadow needs some blur in GPUI)
  • 3243905 launcher: an override Tailscale path that isn't there means not installed
  • fd53605 launcher: a focus ring with a gap; the empty Servers page mentions the EULA
  • d21b122 launcher: the suggested server name is selected (typing replaces it); Space types a space everywhere
  • 1b17bef launcher: the Check Minecraft accounts note wraps in the Create dialog
  • a8dbaaa launcher: refused values show under their field; a restore says what it did; Checking… while an update check runs

📊 Changes

18 files changed (+6229 additions, -375 deletions)

View changed files

📝 launcher/Cargo.lock (+1 -0)
📝 launcher/Cargo.toml (+3 -0)
📝 launcher/README.md (+41 -4)
➖ launcher/docs/server.png (+0 -0)
➕ launcher/docs/servers-tailscale.png (+0 -0)
➕ launcher/docs/servers.png (+0 -0)
📝 launcher/src/backend.rs (+2 -1)
📝 launcher/src/cli.rs (+164 -0)
➕ launcher/src/heads.rs (+98 -0)
➕ launcher/src/internet.rs (+714 -0)
📝 launcher/src/lib.rs (+3 -0)
📝 launcher/src/main.rs (+133 -370)
➕ launcher/src/servers.rs (+968 -0)
➕ launcher/src/servers/tests.rs (+225 -0)
➕ launcher/src/servers_page.rs (+3054 -0)
➕ launcher/src/tailscale.rs (+509 -0)
➕ launcher/src/tailscale/tests.rs (+270 -0)
📝 launcher/src/theme.rs (+44 -0)

📄 Description

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

What

A Servers page in the launcher. It hosts a Horizon server with no terminal and no docs. Everything goes through horizon-server (#1009) and the launcher glue from #1017, so the launcher keeps no copy of the server's logic.

  • Servers: a new top-level page. The Play page's server mode is replaced by a Host a server button that leads there.
    • Create a server: name; New world (optional seed) or Copy one of my worlds; game mode; difficulty; most players; Friends only (the default) or Anyone with the address, with the players (the first becomes an operator); Check Minecraft accounts; and I agree to the Minecraft EULA with a link. With the defaults, tick the EULA and press Create.
    • Add a server folder… adds an existing one.
  • Dashboard:
    • Start, Stop, Restart.
    • The state: starting, running, paused while nobody plays, restarted after a crash (with the count and the last reason), stopping, updating, with the uptime.
    • Players online, TPS, MSPT, RAM.
    • Open the web panel (signed in through the control API) and Open the folder.
    • Tabs: Overview, Players, Settings, Backups.
  • Overview:
    • The LAN address with Copy. :port is added when it isn't 25565, with what to tell friends.
    • Friends over the internet (below).
    • The console, with a command line.
  • Players: online players with their heads, Make operator / Remove operator, Kick, Ban. Below that, the Friends only switch, a name field with Let in, and the list with Remove.
  • Settings: every setting config set takes, as form controls.
    • Each row says whether it applies at once or after a restart, and the page shows "Restart to apply: …" with Restart now.
    • Bad values are refused in red under the field.
    • Run in the background and at login (horizon-server service install|uninstall).
  • Backups:
    • Back up now, the automatic switch, and the list with Restore, which asks first (Replace the world).
    • Updates: Check for updates, then "Update available" and Update now. The world is backed up first, and the update rolls itself back if the new version doesn't start. Also Older versions kept (updates.keep).
    • A server whose Horizon predates config says so here instead of showing empty lists.
  • Errors are plain sentences, with a fix button where one exists: Use port 25566 for a busy port, Prepare the game files.
  • Servers started from the launcher stop when it closes, unless they run in the background.

Friends over the internet (Tailscale) (tailscale.rs, internet.rs):

  • Status: the panel reads tailscale status --json, the only command it runs.
    • Not installed: Install Tailscale.
    • Not running: Open Tailscale.
    • Signed out: Sign in to Tailscale. That is Tailscale's own sign-in; Horizon never sees it. On Linux the panel shows sudo tailscale up --operator=$USER.
    • Check again in each case.
    • Running: the MagicDNS name and IP with the port, and Copy.
  • Invite a friend:
    • Through the admin console (Open the admin console), or here with an access token the player makes (Use an access token…).
    • The token goes to the system keychain and is only sent to api.tailscale.com.
    • Make an invitation (optionally to an email): a device-sharing invite for this computer only, one friend, never as an exit node.
    • The list shows Withdraw or Stop sharing.
  • Limit them to Minecraft:
    • On Tailscale's default policy (allow all), it changes the policy after a confirmation (Change the access controls). Members and tagged devices keep access to everything. Shared users reach only this-ip:port.
    • It validates the policy first and writes with If-Match, so a policy changed meanwhile is never overwritten (tested: Tailscale answers 412, and the panel says so and reloads).
    • Remove the limit puts the default back.
    • A custom policy is never rewritten. The panel gives the rule to paste instead, with Copy and Open access controls.
  • Forget the access token. Funnel is never used, and the panel says so.

Design and accessibility:

  • The page uses the launcher's design tokens.
  • Every control is reachable with Tab and Shift-Tab and pressed with Enter or Space. The accent focus ring has a page-coloured gap, so it shows around filled buttons too. It appears only after Tab, not on clicks.
  • GPUI draws nothing for a shadow with no blur, so the ring is drawn with half a pixel of blur.
  • Escape closes the Create dialog.
  • The suggested server name is selected: typing replaces it.
  • Space types a space even where the platform sends no character for it.

Why

Brief launcher-server-1, Ludovic's own request: people who want a Rust server should never have to touch code or read a doc.

Screenshots

These are the real launcher (debug build), not mock-ups.

Capture method:

  • The Mac mini's session was locked, so screencapture only saw the lock screen. The screens were captured on the ThinkPad (Linux) instead: under Xvfb with Mesa lavapipe, driven with xdotool, and captured with xwd.
  • The launcher ran in its own user and network namespace (slirp4netns), so the LAN address is a made-up 10.0.2.100.
  • Tailscale was a stand-in CLI and API that keeps state in memory (MagicDNS ludos-pc.tail1234.ts.net, IP 100.64.12.34, @example.com friends). The stand-in API was a small Python server I wrote; the policy logic it exercised is the launcher's own.
  • The servers were real horizon-server runs, and the bot is horizon-bots.

All 41 screenshots are on the screenshots/launcher-servers branch. That branch holds only images, is not for main, and includes a README with every button name.

Empty page, keyboard focus ring Create dialog
Running Restarted after a crash (engine killed with SIGKILL)
Console Players (a bot online)
Settings: applied live vs restart A refused value
Busy port, with its fix Restore asks first
Update available After the update (backup made first)
Tailscale: invitations Limit them to Minecraft: confirmation
A custom policy: a rule to paste, nothing rewritten Tailscale signed out
Dark Mac mini: a real Horizon client joined

How tested

Unit tests:

  • tailscale/tests.rs covers:
    • status parsing (running, signed out with and without a link, stopped, missing);
    • a stand-in CLI that refuses anything but status --json;
    • the policy transforms (default ACLs, the older users/ports form, grants, a second port, custom policies never rewritten, undo);
    • a stand-in HTTP API. It checks the Bearer token on every call, the invite body (multiUse: false, allowExitNode: false), the order validate → write, and If-Match on the write.
  • servers_page tests cover the keyboard in text fields (a selected suggestion replaced or cleared, Space without a character, Tab/arrows/shortcuts passed on, Enter, Escape) and readable backup names.
  • theme tests cover contrast: the focus ring and refused-field borders are at least 3:1 on every background (WCAG 1.4.11), and text on a selected suggestion is at least 4.5:1, in light and dark. Text colours are already held to AA by horizon-theme's own test.

Full flow on the Mac mini (the brief's list, through horizon-launcher servers, which runs the same functions as the page, with #1009's horizon-server):

  • create;
  • start;
  • bot Friend0 refused (not_whitelisted), then Let in, then the bot joins;
  • a marker block, a backup, a change, then restore, then execute if block → Test passed;
  • update --archive from a locally packaged release: "Now on v2026.10.19.91 (was v2026.10.19.90): the game is up";
  • a join after the update;
  • service install (launchd running) and uninstall;
  • a real Horizon client (Metal, offscreen) joined;
  • stop.

Full flow on the ThinkPad (Linux), through this page's buttons, with the screenshots above. Every step went through the UI:

  • create (EULA check, then Create);
  • Start;
  • a console command;
  • Let in Friend0, then the bot joins;
  • Kick;
  • settings live (difficulty) and after a restart (most players);
  • Back up now;
  • Restore → Replace the world;
  • Check for updates → Update now from the real v2026.10.19.09 to v2026.10.19.10, with a backup first;
  • a bot joins after the update;
  • the busy-port error and its fix;
  • a crash and the restart;
  • Stop.

Pressing Update now there found a real bug in horizon-server update (GNU tar keeps the archive's owners as root in a user namespace). It is fixed in #1009.

Self-check:

  • cargo fmt -- --check (launcher): clean.
  • cargo clippy --features gpui/runtime_shaders --all-targets -- -D warnings: clean.
  • cargo test --features gpui/runtime_shaders: 74 + 9 + 1 passed.
  • tools/parity.py --changed origin/main: 0 harnesses depend on these files.

For Ludovic: the real Tailscale test (about 15 minutes)

Nothing here touched a real tailnet. The Mac mini's Tailscale is the fleet tailnet, and I only read its status. To test for real:

  1. Use a computer with this branch's launcher and Tailscale signed in to the tailnet you want to test. Limit them to Minecraft only rewrites a tailnet still on Tailscale's default policy. If your tailnet has its own policy, the panel shows a rule to paste and changes nothing.
  2. Servers → Create a server, tick the EULA, Create, then Start. In Overview → Friends over the internet, the name must match tailscale status.
  3. In the admin console go to Settings → Keys → Generate access token (1 day is enough). In the launcher press Use an access token…, paste the token and press Save.
  4. Type the email of a second Tailscale account you own (another login, on a phone or laptop in its own tailnet) and press Make an invitation. Accept it on that device. The launcher's list should then say Shared with … (it reads them again every 30 s).
  5. Players → Let in that device's player name. On it, open Horizon, go to Multiplayer → Add Server, paste the MagicDNS name and join.
  6. Press Limit them to Minecraft → Change the access controls. In Access controls, check that the default rule now has autogroup:member, autogroup:tagged and that there is a new autogroup:shared → <ip>:<port> rule. From the friend's device the game still joins, and nc -vz <ip> 22 (or any other port) fails.
  7. Press Remove the limit and check that the default rule is back. Then press Stop sharing: the friend's device loses this computer. Last, press Forget the access token and revoke the token in Settings → Keys.

What's left

  • That real-tailnet run (above).
  • The Mac mini session was locked, so the macOS screenshots of this page come from the Mac's end-to-end run only (CLI and client). The page itself was captured on Linux.
  • Backup times are shown in UTC, as the backup names store them.
  • docs/play.png in the launcher README still shows the old Play page (before the redesign); it is unrelated to this PR.

Merge order: #1009 (horizon-server config, the offline whitelist and the tar fix), then #1017 (launcher backend), then this one. This branch contains #1017's commit.

🤖 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/1026 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-servers-page` --- ### 📝 Commits (10+) - [`627837e`](https://github.com/horizon-rust/horizon/commit/627837e8c3870506e951bfbb360d6aa20a5bc75f) Launcher: servers hosted through horizon-server (backend and CLI) - [`4768d3f`](https://github.com/horizon-rust/horizon/commit/4768d3f65b9cc04ebc3f6639676c43c06ac2c2f9) launcher: a Servers page that creates, runs and manages horizon-server servers (WIP) - [`a8a00aa`](https://github.com/horizon-rust/horizon/commit/a8a00aac946d080b0ed032d7f538d8505fb25465) launcher: Friends over the internet: Tailscale status, invitations and a safe access rule - [`d2898fc`](https://github.com/horizon-rust/horizon/commit/d2898fcba125158bb01f64dba80291d5e34b4c03) launcher README: the Servers page - [`8f51e68`](https://github.com/horizon-rust/horizon/commit/8f51e68d2d540420cc96c1a61e7a192638700efe) launcher: draw the keyboard focus ring (a shadow needs some blur in GPUI) - [`3243905`](https://github.com/horizon-rust/horizon/commit/32439053c91a763af67d87d48f9fe96de1d9eab8) launcher: an override Tailscale path that isn't there means not installed - [`fd53605`](https://github.com/horizon-rust/horizon/commit/fd5360533bff78967d948e98571b16fc89c90851) launcher: a focus ring with a gap; the empty Servers page mentions the EULA - [`d21b122`](https://github.com/horizon-rust/horizon/commit/d21b1223797a512f9ed78fb0e269d264658a912d) launcher: the suggested server name is selected (typing replaces it); Space types a space everywhere - [`1b17bef`](https://github.com/horizon-rust/horizon/commit/1b17bef90de81eb4715355a7815704e55c0ead63) launcher: the Check Minecraft accounts note wraps in the Create dialog - [`a8dbaaa`](https://github.com/horizon-rust/horizon/commit/a8dbaaabd49bfd43e200dc72493f277df5758244) launcher: refused values show under their field; a restore says what it did; Checking… while an update check runs ### 📊 Changes **18 files changed** (+6229 additions, -375 deletions) <details> <summary>View changed files</summary> 📝 `launcher/Cargo.lock` (+1 -0) 📝 `launcher/Cargo.toml` (+3 -0) 📝 `launcher/README.md` (+41 -4) ➖ `launcher/docs/server.png` (+0 -0) ➕ `launcher/docs/servers-tailscale.png` (+0 -0) ➕ `launcher/docs/servers.png` (+0 -0) 📝 `launcher/src/backend.rs` (+2 -1) 📝 `launcher/src/cli.rs` (+164 -0) ➕ `launcher/src/heads.rs` (+98 -0) ➕ `launcher/src/internet.rs` (+714 -0) 📝 `launcher/src/lib.rs` (+3 -0) 📝 `launcher/src/main.rs` (+133 -370) ➕ `launcher/src/servers.rs` (+968 -0) ➕ `launcher/src/servers/tests.rs` (+225 -0) ➕ `launcher/src/servers_page.rs` (+3054 -0) ➕ `launcher/src/tailscale.rs` (+509 -0) ➕ `launcher/src/tailscale/tests.rs` (+270 -0) 📝 `launcher/src/theme.rs` (+44 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What A **Servers** page in the launcher. It hosts a Horizon server with no terminal and no docs. Everything goes through `horizon-server` (#1009) and the launcher glue from #1017, so the launcher keeps no copy of the server's logic. - **Servers**: a new top-level page. The Play page's server mode is replaced by a **Host a server** button that leads there. - **Create a server**: name; **New world** (optional seed) or **Copy one of my worlds**; game mode; difficulty; most players; **Friends only** (the default) or **Anyone with the address**, with the players (the first becomes an operator); **Check Minecraft accounts**; and **I agree to the Minecraft EULA** with a link. With the defaults, tick the EULA and press **Create**. - **Add a server folder…** adds an existing one. - **Dashboard**: - **Start**, **Stop**, **Restart**. - The state: starting, running, paused while nobody plays, restarted after a crash (with the count and the last reason), stopping, updating, with the uptime. - Players online, TPS, MSPT, RAM. - **Open the web panel** (signed in through the control API) and **Open the folder**. - Tabs: Overview, Players, Settings, Backups. - **Overview**: - The LAN address with **Copy**. `:port` is added when it isn't 25565, with what to tell friends. - Friends over the internet (below). - The console, with a command line. - **Players**: online players with their heads, **Make operator** / **Remove operator**, **Kick**, **Ban**. Below that, the **Friends only** switch, a name field with **Let in**, and the list with **Remove**. - **Settings**: every setting `config set` takes, as form controls. - Each row says whether it applies at once or after a restart, and the page shows "Restart to apply: …" with **Restart now**. - Bad values are refused in red under the field. - **Run in the background and at login** (`horizon-server service install|uninstall`). - **Backups**: - **Back up now**, the automatic switch, and the list with **Restore**, which asks first (**Replace the world**). - **Updates**: **Check for updates**, then "Update available" and **Update now**. The world is backed up first, and the update rolls itself back if the new version doesn't start. Also **Older versions kept** (`updates.keep`). - A server whose Horizon predates `config` says so here instead of showing empty lists. - **Errors** are plain sentences, with a fix button where one exists: **Use port 25566** for a busy port, **Prepare the game files**. - Servers started from the launcher stop when it closes, unless they run in the background. **Friends over the internet (Tailscale)** (`tailscale.rs`, `internet.rs`): - **Status**: the panel reads `tailscale status --json`, the only command it runs. - Not installed: **Install Tailscale**. - Not running: **Open Tailscale**. - Signed out: **Sign in to Tailscale**. That is Tailscale's own sign-in; Horizon never sees it. On Linux the panel shows `sudo tailscale up --operator=$USER`. - **Check again** in each case. - Running: the MagicDNS name and IP with the port, and **Copy**. - **Invite a friend**: - Through the admin console (**Open the admin console**), or here with an access token the player makes (**Use an access token…**). - The token goes to the system keychain and is only sent to `api.tailscale.com`. - **Make an invitation** (optionally to an email): a device-sharing invite for this computer only, one friend, never as an exit node. - The list shows **Withdraw** or **Stop sharing**. - **Limit them to Minecraft**: - On Tailscale's default policy (allow all), it changes the policy after a confirmation (**Change the access controls**). Members and tagged devices keep access to everything. Shared users reach only `this-ip:port`. - It validates the policy first and writes with `If-Match`, so a policy changed meanwhile is never overwritten (tested: Tailscale answers 412, and the panel says so and reloads). - **Remove the limit** puts the default back. - A custom policy is never rewritten. The panel gives the rule to paste instead, with **Copy** and **Open access controls**. - **Forget the access token**. Funnel is never used, and the panel says so. **Design and accessibility**: - The page uses the launcher's design tokens. - Every control is reachable with Tab and Shift-Tab and pressed with Enter or Space. The accent focus ring has a page-coloured gap, so it shows around filled buttons too. It appears only after Tab, not on clicks. - GPUI draws nothing for a shadow with no blur, so the ring is drawn with half a pixel of blur. - Escape closes the Create dialog. - The suggested server name is selected: typing replaces it. - Space types a space even where the platform sends no character for it. ## Why Brief launcher-server-1, Ludovic's own request: people who want a Rust server should never have to touch code or read a doc. ## Screenshots These are the real launcher (debug build), not mock-ups. **Capture method:** - The Mac mini's session was locked, so `screencapture` only saw the lock screen. The screens were captured on the ThinkPad (Linux) instead: under Xvfb with Mesa lavapipe, driven with `xdotool`, and captured with `xwd`. - The launcher ran in its own user and network namespace (slirp4netns), so the LAN address is a made-up `10.0.2.100`. - Tailscale was a stand-in CLI and API that keeps state in memory (MagicDNS `ludos-pc.tail1234.ts.net`, IP `100.64.12.34`, `@example.com` friends). The stand-in API was a small Python server I wrote; the policy logic it exercised is the launcher's own. - The servers were real `horizon-server` runs, and the bot is `horizon-bots`. All 41 screenshots are on the [`screenshots/launcher-servers`](https://github.com/ludovic111/horizon/tree/screenshots/launcher-servers/launcher-servers) branch. That branch holds only images, is not for main, and includes a README with every button name. | | | |---|---| | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/01-servers-empty-keyboard-focus.png) Empty page, keyboard focus ring | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/03-create-eula.png) Create dialog | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/07-dashboard-running.png) Running | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/41-dashboard-restarted-after-crash.png) Restarted after a crash (engine killed with SIGKILL) | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/08-console-command.png) Console | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/21-players-online.png) Players (a bot online) | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/24-settings-restart-to-apply.png) Settings: applied live vs restart | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/26-settings-port-refused.png) A refused value | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/27-error-port-busy.png) Busy port, with its fix | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/30-backups-restore-confirm.png) Restore asks first | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/32-updates-available.png) Update available | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/36-backups-after-update.png) After the update (backup made first) | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/12-tailscale-invitation-made.png) Tailscale: invitations | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/13-tailscale-limit-confirm.png) Limit them to Minecraft: confirmation | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/16-tailscale-custom-policy.png) A custom policy: a rule to paste, nothing rewritten | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/18-tailscale-signed-out.png) Tailscale signed out | | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/38-dark-dashboard.png) Dark | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-servers/launcher-servers/40-mac-client-joined.png) Mac mini: a real Horizon client joined | ## How tested **Unit tests:** - `tailscale/tests.rs` covers: - status parsing (running, signed out with and without a link, stopped, missing); - a stand-in CLI that refuses anything but `status --json`; - the policy transforms (default ACLs, the older `users/ports` form, grants, a second port, custom policies never rewritten, undo); - a stand-in HTTP API. It checks the Bearer token on every call, the invite body (`multiUse: false, allowExitNode: false`), the order validate → write, and `If-Match` on the write. - `servers_page` tests cover the keyboard in text fields (a selected suggestion replaced or cleared, Space without a character, Tab/arrows/shortcuts passed on, Enter, Escape) and readable backup names. - `theme` tests cover contrast: the focus ring and refused-field borders are at least 3:1 on every background (WCAG 1.4.11), and text on a selected suggestion is at least 4.5:1, in light and dark. Text colours are already held to AA by horizon-theme's own test. **Full flow on the Mac mini** (the brief's list, through `horizon-launcher servers`, which runs the same functions as the page, with #1009's `horizon-server`): - create; - start; - bot `Friend0` refused (`not_whitelisted`), then **Let in**, then the bot joins; - a marker block, a backup, a change, then restore, then `execute if block` → `Test passed`; - `update --archive` from a locally packaged release: "Now on v2026.10.19.91 (was v2026.10.19.90): the game is up"; - a join after the update; - `service install` (launchd running) and `uninstall`; - a real Horizon client (Metal, offscreen) joined; - stop. **Full flow on the ThinkPad (Linux)**, through this page's buttons, with the screenshots above. Every step went through the UI: - create (EULA check, then Create); - **Start**; - a console command; - **Let in** `Friend0`, then the bot joins; - **Kick**; - settings live (difficulty) and after a restart (most players); - **Back up now**; - **Restore** → **Replace the world**; - **Check for updates** → **Update now** from the real v2026.10.19.09 to v2026.10.19.10, with a backup first; - a bot joins after the update; - the busy-port error and its fix; - a crash and the restart; - **Stop**. Pressing **Update now** there found a real bug in `horizon-server update` (GNU tar keeps the archive's owners as root in a user namespace). It is fixed in #1009. **Self-check:** - `cargo fmt -- --check` (launcher): clean. - `cargo clippy --features gpui/runtime_shaders --all-targets -- -D warnings`: clean. - `cargo test --features gpui/runtime_shaders`: 74 + 9 + 1 passed. - `tools/parity.py --changed origin/main`: 0 harnesses depend on these files. ## For Ludovic: the real Tailscale test (about 15 minutes) Nothing here touched a real tailnet. The Mac mini's Tailscale is the fleet tailnet, and I only read its status. To test for real: 1. Use a computer with this branch's launcher and Tailscale signed in to the tailnet you want to test. **Limit them to Minecraft** only rewrites a tailnet still on Tailscale's default policy. If your tailnet has its own policy, the panel shows a rule to paste and changes nothing. 2. **Servers → Create a server**, tick the EULA, **Create**, then **Start**. In **Overview → Friends over the internet**, the name must match `tailscale status`. 3. In the admin console go to **Settings → Keys → Generate access token** (1 day is enough). In the launcher press **Use an access token…**, paste the token and press **Save**. 4. Type the email of a second Tailscale account you own (another login, on a phone or laptop in its own tailnet) and press **Make an invitation**. Accept it on that device. The launcher's list should then say **Shared with …** (it reads them again every 30 s). 5. **Players → Let in** that device's player name. On it, open Horizon, go to **Multiplayer → Add Server**, paste the MagicDNS name and join. 6. Press **Limit them to Minecraft → Change the access controls**. In **Access controls**, check that the default rule now has `autogroup:member, autogroup:tagged` and that there is a new `autogroup:shared → <ip>:<port>` rule. From the friend's device the game still joins, and `nc -vz <ip> 22` (or any other port) fails. 7. Press **Remove the limit** and check that the default rule is back. Then press **Stop sharing**: the friend's device loses this computer. Last, press **Forget the access token** and revoke the token in **Settings → Keys**. ## What's left - That real-tailnet run (above). - The Mac mini session was locked, so the macOS screenshots of this page come from the Mac's end-to-end run only (CLI and client). The page itself was captured on Linux. - Backup times are shown in UTC, as the backup names store them. - `docs/play.png` in the launcher README still shows the old Play page (before the redesign); it is unrelated to this PR. Merge order: #1009 (horizon-server `config`, the offline whitelist and the tar fix), then #1017 (launcher backend), then this one. This branch contains #1017's commit. 🤖 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-02 16:00:43 +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#3000
No description provided.