[PR #7769] Splitscreen: use the launcher's other Microsoft accounts #7807

Open
opened 2026-11-03 07:24:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7769
Author: @martipops
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: split/fresh-launcher-accounts


📝 Commits (10+)

  • bd7849a Splitscreen: the others join the server P1 is on
  • f7920f3 Merge branch 'split/fresh-controller-setup' into split/fresh-servers
  • 77b7eae Validate every splitscreen admission before opening a connection
  • 3a539aa Merge branch 'split/fresh-controller-setup' into split/fresh-servers
  • 1e3317a Merge branch 'split/fresh-controller-setup' into split/fresh-servers
  • ddacea4 Merge native mouse ownership fixes and native input regressions
  • 77cce1d Extend native input coverage to both players cameras
  • c00651d Keep native desktop tests opt-in with cleanup on setup failure
  • 7441ce9 Merge portable native mouse fixture updates
  • a74c130 Use position stability in native input regression checks

📊 Changes

20 files changed (+1002 additions, -109 deletions)

View changed files

📝 crates/horizon-client-render/src/auth.rs (+104 -11)
📝 crates/horizon-client-render/src/split_profiles.rs (+55 -13)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+9 -1)
📝 crates/horizon-client/assets/horizon/lang/fr_fr.json (+9 -1)
📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/remote.rs (+16 -14)
📝 crates/horizon-client/src/game/remote_chat.rs (+8 -4)
📝 crates/horizon-client/src/game/server_packs.rs (+13 -0)
📝 crates/horizon-client/src/game/split.rs (+19 -2)
➕ crates/horizon-client/src/game/split/launcher.rs (+92 -0)
📝 crates/horizon-client/src/game/split/players.rs (+136 -39)
📝 crates/horizon-client/src/reconnect.rs (+1 -1)
📝 crates/horizon-client/src/server_packs.rs (+4 -0)
📝 docs/extras.md (+12 -1)
📝 docs/microsoft-account.md (+10 -0)
📝 launcher/src/account.rs (+177 -17)
📝 launcher/src/account/tests.rs (+111 -0)
📝 launcher/src/backend.rs (+6 -4)
📝 launcher/src/main.rs (+2 -1)
📝 tools/splitscreen_e2e.py (+213 -0)

📄 Description

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

What and why

Extra local players can choose the launcher's other Microsoft accounts and connect with their own sessions, skins and secure-chat keys. While Splitscreen is enabled, Play renews those accounts when needed and hands the game private, read-once session files. Unavailable accounts stay visible as Offline with instructions to sign in again; they cannot be forgotten from the game's profile picker. The launcher continues starting if another account cannot renew.

This rebuilds closed #4203 on the exact head of #6399 (45d56f3d8). It preserves the newer launcher play --account path and translations, validates each handoff's account UUID, and makes secure-chat keys account-specific.

Depends on #6399. Until that merges, this PR includes its server-joining changes. The discussion there about offline guests on third-party servers remains a dependency; this PR leaves that policy unchanged. Review the account handoff alone in the incremental comparison.

Fixes #7760. Refs #2054 and #3541.

Kind

  • feature: something new for players (listed under New in the release notes)

Vanilla reference

Horizon-only local splitscreen and launcher handoff. Authentication and signed chat continue using the existing Minecraft services and protocol paths.

Other projects' code

None. Rebuilt from this repository's previous splitscreen implementation.

Validation

  • macOS live checks: launcher, switch, and profile_availability pass (12 checks): account ordering and status, unavailable-account protection, joining with a handed-off session, offline-profile creation, switching and saved-progress continuity.
  • Launcher library: 454 passed, 6 ignored, with gpui_platform/runtime_shaders.
  • Regression coverage includes mismatched handoff UUIDs, expiring tokens, unavailable accounts, renewal budget, and per-account secure-chat keys.
  • Fresh real-Microsoft-account joins to an online-mode server, and Windows/Linux validation, remain to be performed before this draft is ready for review. The previous implementation's results are documented in closed #4203; they are not claimed for this head.
  • Vanilla parity is left to CI (pr_ready --quick).

Self-check

Final committed handoff: 17 files. The run below counted two temporary local Cargo-cache links, which are excluded from the commit. Checks are incremental to #6399; its server changes carry their own validation.

pr_ready (tools/pr_ready.py --quick --base split/fresh-servers on Mac, against split/fresh-servers at 45d56f3d8, 8 min 4 s)

Check Result
Scope ⚠️ 19 files, +710 −86; 780 lines of code: over 500, split it if it can ship in parts; mixes game, launcher
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (53 s)
rustfmt ✅ (6 s)
clippy ✅ (1 min 24 s)
tests: horizon-client, horizon-client-lib, horizon-client-render ✅ 3342 passed (5 min 9 s)
doc tests ✅ 0 passed (4 s)
content root tests ➖ content root untouched
mod API up to date ✅ (12 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅
launcher clippy ✅ (6 s)
launcher tests ✅ 454 passed (4 s)
Parity ➖ 93 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow, arrow_wind_charge, blending, block_entity_tickers, block_particles, block_removal, block_tint, block_transformer, boat_authority and 81 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Screenshots

Same build, synthetic accounts, macOS: without a launcher handoff, then with one. The available Microsoft account and unavailable account lead the list; their Forget buttons are absent.

Without handoff With handoff
Offline profiles Microsoft and Offline account status

🤖 Generated with Codex


🔄 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/7769 **Author:** [@martipops](https://github.com/martipops) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `split/fresh-launcher-accounts` --- ### 📝 Commits (10+) - [`bd7849a`](https://github.com/horizon-rust/horizon/commit/bd7849a6cb6043d3d2236a6c74ab6322e8cb8d17) Splitscreen: the others join the server P1 is on - [`f7920f3`](https://github.com/horizon-rust/horizon/commit/f7920f30f7607cdf5d7ce5d54fb898ac78f1b1cc) Merge branch 'split/fresh-controller-setup' into split/fresh-servers - [`77b7eae`](https://github.com/horizon-rust/horizon/commit/77b7eae96d1541bf50cfa334dfbab38c801b5eb1) Validate every splitscreen admission before opening a connection - [`3a539aa`](https://github.com/horizon-rust/horizon/commit/3a539aa588df3b3941007b466447a6897af27cbd) Merge branch 'split/fresh-controller-setup' into split/fresh-servers - [`1e3317a`](https://github.com/horizon-rust/horizon/commit/1e3317a9e28faaaacd99e631643c1efe05a5e8ea) Merge branch 'split/fresh-controller-setup' into split/fresh-servers - [`ddacea4`](https://github.com/horizon-rust/horizon/commit/ddacea4d6f7b9447799baa03497e797c776ef323) Merge native mouse ownership fixes and native input regressions - [`77cce1d`](https://github.com/horizon-rust/horizon/commit/77cce1d217a59b0900b19b1b183ae6cb906c8910) Extend native input coverage to both players cameras - [`c00651d`](https://github.com/horizon-rust/horizon/commit/c00651d4d09bd946dc2d9f60b08bdafe42e96118) Keep native desktop tests opt-in with cleanup on setup failure - [`7441ce9`](https://github.com/horizon-rust/horizon/commit/7441ce96dad20df5ad6ec4289c27c93c25d99be6) Merge portable native mouse fixture updates - [`a74c130`](https://github.com/horizon-rust/horizon/commit/a74c13032b864de81ff5fbbd2ec8ca64322dc359) Use position stability in native input regression checks ### 📊 Changes **20 files changed** (+1002 additions, -109 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/auth.rs` (+104 -11) 📝 `crates/horizon-client-render/src/split_profiles.rs` (+55 -13) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+9 -1) 📝 `crates/horizon-client/assets/horizon/lang/fr_fr.json` (+9 -1) 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+16 -14) 📝 `crates/horizon-client/src/game/remote_chat.rs` (+8 -4) 📝 `crates/horizon-client/src/game/server_packs.rs` (+13 -0) 📝 `crates/horizon-client/src/game/split.rs` (+19 -2) ➕ `crates/horizon-client/src/game/split/launcher.rs` (+92 -0) 📝 `crates/horizon-client/src/game/split/players.rs` (+136 -39) 📝 `crates/horizon-client/src/reconnect.rs` (+1 -1) 📝 `crates/horizon-client/src/server_packs.rs` (+4 -0) 📝 `docs/extras.md` (+12 -1) 📝 `docs/microsoft-account.md` (+10 -0) 📝 `launcher/src/account.rs` (+177 -17) 📝 `launcher/src/account/tests.rs` (+111 -0) 📝 `launcher/src/backend.rs` (+6 -4) 📝 `launcher/src/main.rs` (+2 -1) 📝 `tools/splitscreen_e2e.py` (+213 -0) </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally. ## What and why Extra local players can choose the launcher's other Microsoft accounts and connect with their own sessions, skins and secure-chat keys. While Splitscreen is enabled, Play renews those accounts when needed and hands the game private, read-once session files. Unavailable accounts stay visible as Offline with instructions to sign in again; they cannot be forgotten from the game's profile picker. The launcher continues starting if another account cannot renew. This rebuilds closed #4203 on the exact head of #6399 (`45d56f3d8`). It preserves the newer launcher `play --account` path and translations, validates each handoff's account UUID, and makes secure-chat keys account-specific. **Depends on #6399.** Until that merges, this PR includes its server-joining changes. The discussion there about offline guests on third-party servers remains a dependency; this PR leaves that policy unchanged. Review the account handoff alone in [the incremental comparison](https://github.com/martipops/horizon/compare/split/fresh-servers...split/fresh-launcher-accounts). Fixes #7760. Refs #2054 and #3541. ## Kind - [x] feature: something new for players (listed under New in the release notes) ## Vanilla reference Horizon-only local splitscreen and launcher handoff. Authentication and signed chat continue using the existing Minecraft services and protocol paths. ## Other projects' code None. Rebuilt from this repository's previous splitscreen implementation. ## Validation - macOS live checks: `launcher`, `switch`, and `profile_availability` pass (12 checks): account ordering and status, unavailable-account protection, joining with a handed-off session, offline-profile creation, switching and saved-progress continuity. - Launcher library: 454 passed, 6 ignored, with `gpui_platform/runtime_shaders`. - Regression coverage includes mismatched handoff UUIDs, expiring tokens, unavailable accounts, renewal budget, and per-account secure-chat keys. - Fresh real-Microsoft-account joins to an online-mode server, and Windows/Linux validation, remain to be performed before this draft is ready for review. The previous implementation's results are documented in closed #4203; they are not claimed for this head. - Vanilla parity is left to CI (`pr_ready --quick`). ## Self-check Final committed handoff: 17 files. The run below counted two temporary local Cargo-cache links, which are excluded from the commit. Checks are incremental to #6399; its server changes carry their own validation. **pr_ready** (`tools/pr_ready.py --quick --base split/fresh-servers` on Mac, against split/fresh-servers at 45d56f3d8, 8 min 4 s) | Check | Result | | --- | --- | | Scope | ⚠️ 19 files, +710 −86; 780 lines of code: over 500, split it if it can ship in parts; mixes game, launcher | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (53 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 min 24 s) | | tests: horizon-client, horizon-client-lib, horizon-client-render | ✅ 3342 passed (5 min 9 s) | | doc tests | ✅ 0 passed (4 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (12 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ | | launcher clippy | ✅ (6 s) | | launcher tests | ✅ 454 passed (4 s) | | Parity | ➖ 93 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow, arrow_wind_charge, blending, block_entity_tickers, block_particles, block_removal, block_tint, block_transformer, boat_authority and 81 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | ## Screenshots Same build, synthetic accounts, macOS: without a launcher handoff, then with one. The available Microsoft account and unavailable account lead the list; their Forget buttons are absent. | Without handoff | With handoff | | --- | --- | | ![Offline profiles](https://raw.githubusercontent.com/martipops/horizon/screenshots/split-accounts-2026-11-02/screenshots/split-accounts/without-handoff.png) | ![Microsoft and Offline account status](https://raw.githubusercontent.com/martipops/horizon/screenshots/split-accounts-2026-11-02/screenshots/split-accounts/picker.png) | 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7807
No description provided.