[PR #3681] [CLOSED] Launcher: play without a Microsoft account, from Settings #5148

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3681
Author: @dacrab
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: feat/launcher-offline


📝 Commits (1)

  • 3a44300 Launcher: play without a Microsoft account, from Settings

📊 Changes

13 files changed (+199 additions, -39 deletions)

View changed files

📝 docs/launcher-commands.md (+2 -2)
📝 docs/microsoft-account.md (+23 -14)
📝 launcher/README.md (+11 -4)
📝 launcher/lang/de.json (+3 -0)
📝 launcher/lang/fr.json (+3 -0)
📝 launcher/lang/ru.json (+3 -0)
📝 launcher/src/backend.rs (+31 -2)
📝 launcher/src/cli.rs (+31 -9)
📝 launcher/src/main.rs (+5 -3)
📝 launcher/src/mcp.rs (+3 -1)
📝 launcher/src/owner_page.rs (+18 -3)
📝 launcher/src/switch_page.rs (+30 -1)
📝 launcher/tests/owner_gate.rs (+36 -0)

📄 Description

🤖 Opened by dacrab's AI agent (OpenCode, DeepSeek V4.1 Flash 1017), not by dacrab himself.

What and why

The owner gate stays the default: Play still needs an account that owns Minecraft: Java Edition, as
docs/microsoft-account.md describes. What was
missing is the other way out for a player who has no such account — not a hidden flag, but a setting they
can see and choose.

Settings → Account → Play without a Microsoft account (backend::Settings::offline_play, off by
default) turns Play into offline play:

  • Home, instances and packs, horizon-launcher play, modpack play and the MCP server's play all start
    the game as the player's offline name (or the game's own), without asking the gate.
  • Worlds, LAN and offline-mode servers work. Online-mode servers still refuse an offline identity, which
    the row and the owner screen both say.
  • Offline names can be added and picked while the setting is on, not only behind an owning account.
  • The owner screen offers Play offline beside Not now, so a player who would rather not sign in
    answers the gate's screen itself; turning it on stops the screen covering the window.
  • The command line gets settings play-offline on|off, account select/account offline pass the gate
    the same way, and account list --json gains plays_offline (the MCP's account_list too).
  • docs/launcher-commands.md is regenerated; the new strings are translated in lang/{fr,ru,de}.json.

Two deliberate limits:

  • Downloading Mojang's game stays owner-only. backend::download_for_owner asks account::launch
    itself, so neither this setting nor the hidden developer option downloads anything.
  • Java instances stay owner-only. Mojang's game takes the account's token.

The hidden dev_offline developer option keeps working, window-only, as before; the window now treats
both the same (Settings::offline_without_owner), while the CLI and MCP read the player's setting alone.

A policy note for the maintainer: this reverses, as an opt-in, the "the launcher doesn't offer offline
play on its own" half of the 2026-10-27 decision. The gate and its default copy are unchanged, but the
launcher now advertises the choice. If the decision means the launcher should never offer it, say so and
I will close this; if it means "don't hand it out by default", this is that. docs/microsoft-account.md
is updated to say which half stands.

Vanilla reference

none — the launcher's account gate; the game binary, its servers, the harnesses and CI are untouched.

Screenshots

Fedora 44, Wayland, scratch homes (HORIZON_HOME/HORIZON_LAUNCHER_HOME/XDG_* in mktemp -d), no real
player data.

Settings → Account, the new row on:

Settings > Account with Play without a Microsoft account on

The owner screen for a player without an owner, now with Play offline:

The owner screen with Play offline

Both come from /tmp scripts that start the launcher with offline_play off/on and grim -g the window;
they are not committed. The images live on an orphan branch of the fork (shots/offline-play), since a PR
body cannot attach files.

Self-check

pr_ready (tools/pr_ready.py on fedora, against origin/main at 64990cd32, 1 min 58 s)

Check Result
Scope ✅ 13 files, +199 −39
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 408 passed (1 min 39 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 ✅ (12 s)
launcher tests ✅ 265 passed (5 s)
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label player-facing: feature

The PR needs the feature label; I have no triage rights on this repository, so it has none yet.

Run here besides the suite: the launcher starts and stays up 12 s with offline_play on (no panic), the
two screenshots above, and launcher/tests/owner_gate.rs's two new tests — with the setting on, play
gets past the gate to "is not prepared yet", and account offline Builder_2 succeeds; with it off, both
still give the gate's sentence.

🤖 Generated with OpenCode (DeepSeek V4.1 Flash 1017 via River).


🔄 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/3681 **Author:** [@dacrab](https://github.com/dacrab) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/launcher-offline` --- ### 📝 Commits (1) - [`3a44300`](https://github.com/horizon-rust/horizon/commit/3a44300610db7ab5c4141d30c68118ce6028d196) Launcher: play without a Microsoft account, from Settings ### 📊 Changes **13 files changed** (+199 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+2 -2) 📝 `docs/microsoft-account.md` (+23 -14) 📝 `launcher/README.md` (+11 -4) 📝 `launcher/lang/de.json` (+3 -0) 📝 `launcher/lang/fr.json` (+3 -0) 📝 `launcher/lang/ru.json` (+3 -0) 📝 `launcher/src/backend.rs` (+31 -2) 📝 `launcher/src/cli.rs` (+31 -9) 📝 `launcher/src/main.rs` (+5 -3) 📝 `launcher/src/mcp.rs` (+3 -1) 📝 `launcher/src/owner_page.rs` (+18 -3) 📝 `launcher/src/switch_page.rs` (+30 -1) 📝 `launcher/tests/owner_gate.rs` (+36 -0) </details> ### 📄 Description > 🤖 Opened by dacrab's AI agent (OpenCode, DeepSeek V4.1 Flash 1017), not by dacrab himself. ## What and why The owner gate stays the default: Play still needs an account that owns Minecraft: Java Edition, as [`docs/microsoft-account.md`](https://github.com/horizon-rust/horizon/blob/main/docs/microsoft-account.md#the-owner-gate) describes. What was missing is the other way out for a player who has no such account — not a hidden flag, but a setting they can see and choose. **Settings → Account → Play without a Microsoft account** (`backend::Settings::offline_play`, off by default) turns Play into offline play: - Home, instances and packs, `horizon-launcher play`, `modpack play` and the MCP server's `play` all start the game as the player's offline name (or the game's own), without asking the gate. - Worlds, LAN and offline-mode servers work. Online-mode servers still refuse an offline identity, which the row and the owner screen both say. - Offline names can be added and picked while the setting is on, not only behind an owning account. - The owner screen offers **Play offline** beside **Not now**, so a player who would rather not sign in answers the gate's screen itself; turning it on stops the screen covering the window. - The command line gets `settings play-offline on|off`, `account select`/`account offline` pass the gate the same way, and `account list --json` gains `plays_offline` (the MCP's `account_list` too). - `docs/launcher-commands.md` is regenerated; the new strings are translated in `lang/{fr,ru,de}.json`. Two deliberate limits: - **Downloading Mojang's game stays owner-only.** `backend::download_for_owner` asks `account::launch` itself, so neither this setting nor the hidden developer option downloads anything. - **Java instances stay owner-only.** Mojang's game takes the account's token. The hidden `dev_offline` developer option keeps working, window-only, as before; the window now treats both the same (`Settings::offline_without_owner`), while the CLI and MCP read the player's setting alone. **A policy note for the maintainer:** this reverses, as an opt-in, the "the launcher doesn't offer offline play on its own" half of the 2026-10-27 decision. The gate and its default copy are unchanged, but the launcher now advertises the choice. If the decision means the launcher should never *offer* it, say so and I will close this; if it means "don't hand it out by default", this is that. `docs/microsoft-account.md` is updated to say which half stands. ## Vanilla reference none — the launcher's account gate; the game binary, its servers, the harnesses and CI are untouched. ## Screenshots Fedora 44, Wayland, scratch homes (`HORIZON_HOME`/`HORIZON_LAUNCHER_HOME`/`XDG_*` in `mktemp -d`), no real player data. Settings → Account, the new row on: ![Settings > Account with Play without a Microsoft account on](https://raw.githubusercontent.com/dacrab/horizon/shots/offline-play/offline-settings-on.png) The owner screen for a player without an owner, now with Play offline: ![The owner screen with Play offline](https://raw.githubusercontent.com/dacrab/horizon/shots/offline-play/offline-owner-gate.png) Both come from `/tmp` scripts that start the launcher with `offline_play` off/on and `grim -g` the window; they are not committed. The images live on an orphan branch of the fork (`shots/offline-play`), since a PR body cannot attach files. ## Self-check **pr_ready** (`tools/pr_ready.py` on fedora, against origin/main at 64990cd32, 1 min 58 s) | Check | Result | | --- | --- | | Scope | ✅ 13 files, +199 −39 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 408 passed (1 min 39 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 | ✅ (12 s) | | launcher tests | ✅ 265 passed (5 s) | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` | The PR needs the `feature` label; I have no triage rights on this repository, so it has none yet. Run here besides the suite: the launcher starts and stays up 12 s with `offline_play` on (no panic), the two screenshots above, and `launcher/tests/owner_gate.rs`'s two new tests — with the setting on, `play` gets past the gate to "is not prepared yet", and `account offline Builder_2` succeeds; with it off, both still give the gate's sentence. 🤖 Generated with [OpenCode](https://opencode.ai) (DeepSeek V4.1 Flash 1017 via River). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:34 +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#5148
No description provided.