[PR #1428] [MERGED] Single player runs in the frame by default again; the server thread is opt-in until parity #3517

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

📋 Pull Request Information

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

Base: main ← Head: fix/alpha-regress-1


📝 Commits (1)

  • 6049012 Single player runs in the frame by default again; the server thread is opt-in

📊 Changes

3 files changed (+17 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+7 -5)
📝 crates/horizon-client/src/game/integrated.rs (+6 -3)
📝 docs/server-levels.md (+4 -3)

📄 Description

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

What

Single player runs its world in the frame by default again. The integrated server thread becomes opt-in: --server-thread or HORIZON_SERVER_THREAD=1. --no-server-thread and HORIZON_SERVER_THREAD=0 still work. LAN guests and dedicated servers are untouched: they run the same server code as before. Three files, +17 −11: the default in game.rs, its --help line, and the docs in integrated.rs and docs/server-levels.md.

This is temporary. It is meant to last until the server thread reaches parity with the in-frame world (FEATURES 4zg). It is not a judgement on #1265.

Why

rdbt's reasoning in #1265 holds. One code path for single player, LAN and dedicated servers is the right end state, and running single player on it is what exposed the ~120 server-path issues rdbt filed. Many of them are fixed already (#1407–#1412, #1416, and #1417–#1420 in review). But this morning a player on the Alpha channel reported single player broken since v0.2.1 ("it's just like the server version but in singleplayer"), while Stable v0.2.0, which runs in-frame, works for them. Today's 20:07Z promotion would ship an Alpha from v0.2.9–v0.2.11 to every Stable player. All of those run single player on the server thread.

I tested the release builds players download (macOS arm64 zips, the same seed, scripted with horizon-ctl, offscreen on the Mac mini):

v0.2.0 (Stable) v0.2.11, server thread (default) v0.2.11, HORIZON_SERVER_THREAD=0 this PR (default)
Basics: walk, break + pick up, place, inventory, fight, eat, boat, minecart, chest, furnace, bed, chat, save + reopen, open a v0.2.0 world ✅ ✅ with real input ✅ ✅
Placed sign opens its editor (#1380) ✅ ❌ screen stays playing ✅ sign ✅ sign
Book and quill opens (#1366) ✅ ❌ screen stays playing ✅ book ✅ book
Totem of Undying in hand, 50 damage (#1292) ✅ ❌ dies, totem still held ✅ health 3.5, totem used ✅ health 3.5, totem used
/kill with keep_inventory false (#1284) ✅ ❌ respawns with all 7 diamonds ✅ inventory dropped ✅ inventory dropped

The server path didn't crash, failed to load no world, and lost no data in these runs. A chest written by v0.2.0 opens with its items on v0.2.11's server thread. But whole features are missing there, and about 45 [server-thread] issues are still open: fishing (#1348), Elytra (#1288), crossbows (#1282), tridents (#1281), the spyglass (#1301), maps (#1382), chat formatting (#1372), wind charges (#1386), shields (#1300), boss bars (#1384), particles (#1392, #1405) and more. Together they match "everything is broken". The in-frame path is what Stable players have today, so this default doesn't regress Stable.

What the in-frame path lacks, as in v0.2.0: one level per dimension (docs/server-levels.md), the frame-pacing gain at high render distances (#678, FEATURES 4e), and the client-side interpolation of punched mobs (4zg(d)). The server-thread fixes from today stay in the code. They apply to LAN guests, dedicated servers and --server-thread.

To switch the default back: once the [server-thread] issues above are fixed, lan_e2e --server-thread passes, and a single-player smoke passes in both modes, revert this PR. Notes are in FEATURES 4zl.

How tested

  • tools/lan_e2e.py on main (e325fa65), Mac mini, both modes. In-frame: 73 pass, 4 fail (beacon, swings, flight, riding). Server thread: 82 pass, 3 fail (swings, flight, riding). Rerunning flight, riding and beacon alone flips which side fails, so these are flakes in both modes (4j(g), 4l(d), 4zl(e)). lan_e2e sets HORIZON_SERVER_THREAD for its host explicitly, so this PR doesn't change what it runs. The same goes for test_friends.py.

  • The scripted single-player session on this PR's release build gives 35/37, the same as v0.2.0 and v0.2.11 in-frame. Both misses are script limits seen in every build: the boat-mount check reads the wrong field, and the minecart isn't pushed from rest. The live sign, book, totem and keep_inventory checks on this PR's build give the in-frame results in the table.

  • tools/parity.py --changed origin/main on the Mac mini: ✅ 25 passed, 0 failed in 23.9 min (the harnesses that depend on these files, in the new in-frame default).

Check Result
rustfmt ✅
cargo clippy --workspace --all-targets -- -D warnings ✅
cargo test -p horizon-client ✅ 1040 + 95 + 18 + 7 passed, 0 failed
Scope ✅ 3 files, +17 −11

Needs Ludovic

Whether to hold today's Stable promotion. See the agent's report to the orchestrator.

🤖 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/1428 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/alpha-regress-1` --- ### 📝 Commits (1) - [`6049012`](https://github.com/horizon-rust/horizon/commit/6049012b52f3e3675fd45f8a7f767015aea11534) Single player runs in the frame by default again; the server thread is opt-in ### 📊 Changes **3 files changed** (+17 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -5) 📝 `crates/horizon-client/src/game/integrated.rs` (+6 -3) 📝 `docs/server-levels.md` (+4 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Single player runs its world in the frame by default again. The integrated server thread becomes opt-in: `--server-thread` or `HORIZON_SERVER_THREAD=1`. `--no-server-thread` and `HORIZON_SERVER_THREAD=0` still work. LAN guests and dedicated servers are untouched: they run the same server code as before. Three files, +17 −11: the default in `game.rs`, its `--help` line, and the docs in `integrated.rs` and `docs/server-levels.md`. **This is temporary.** It is meant to last until the server thread reaches parity with the in-frame world (FEATURES 4zg). It is not a judgement on #1265. ## Why rdbt's reasoning in #1265 holds. One code path for single player, LAN and dedicated servers is the right end state, and running single player on it is what exposed the ~120 server-path issues rdbt filed. Many of them are fixed already (#1407–#1412, #1416, and #1417–#1420 in review). But this morning a player on the Alpha channel reported single player broken since v0.2.1 ("it's just like the server version but in singleplayer"), while Stable v0.2.0, which runs in-frame, works for them. Today's 20:07Z promotion would ship an Alpha from v0.2.9–v0.2.11 to every Stable player. All of those run single player on the server thread. I tested the release builds players download (macOS arm64 zips, the same seed, scripted with horizon-ctl, offscreen on the Mac mini): | | v0.2.0 (Stable) | v0.2.11, server thread (default) | v0.2.11, `HORIZON_SERVER_THREAD=0` | this PR (default) | | --- | --- | --- | --- | --- | | Basics: walk, break + pick up, place, inventory, fight, eat, boat, minecart, chest, furnace, bed, chat, save + reopen, open a v0.2.0 world | ✅ | ✅ with real input | ✅ | ✅ | | Placed sign opens its editor (#1380) | ✅ | ❌ screen stays `playing` | ✅ `sign` | ✅ `sign` | | Book and quill opens (#1366) | ✅ | ❌ screen stays `playing` | ✅ `book` | ✅ `book` | | Totem of Undying in hand, 50 damage (#1292) | ✅ | ❌ dies, totem still held | ✅ health 3.5, totem used | ✅ health 3.5, totem used | | `/kill` with keep_inventory false (#1284) | ✅ | ❌ respawns with all 7 diamonds | ✅ inventory dropped | ✅ inventory dropped | The server path didn't crash, failed to load no world, and lost no data in these runs. A chest written by v0.2.0 opens with its items on v0.2.11's server thread. But whole features are missing there, and about 45 `[server-thread]` issues are still open: fishing (#1348), Elytra (#1288), crossbows (#1282), tridents (#1281), the spyglass (#1301), maps (#1382), chat formatting (#1372), wind charges (#1386), shields (#1300), boss bars (#1384), particles (#1392, #1405) and more. Together they match "everything is broken". The in-frame path is what Stable players have today, so this default doesn't regress Stable. What the in-frame path lacks, as in v0.2.0: one level per dimension (docs/server-levels.md), the frame-pacing gain at high render distances (#678, FEATURES 4e), and the client-side interpolation of punched mobs (4zg(d)). The server-thread fixes from today stay in the code. They apply to LAN guests, dedicated servers and `--server-thread`. To switch the default back: once the `[server-thread]` issues above are fixed, `lan_e2e --server-thread` passes, and a single-player smoke passes in both modes, revert this PR. Notes are in FEATURES 4zl. ## How tested - `tools/lan_e2e.py` on main (e325fa65), Mac mini, both modes. In-frame: 73 pass, 4 fail (beacon, swings, flight, riding). Server thread: 82 pass, 3 fail (swings, flight, riding). Rerunning `flight`, `riding` and `beacon` alone flips which side fails, so these are flakes in both modes (4j(g), 4l(d), 4zl(e)). lan_e2e sets `HORIZON_SERVER_THREAD` for its host explicitly, so this PR doesn't change what it runs. The same goes for `test_friends.py`. - The scripted single-player session on this PR's release build gives 35/37, the same as v0.2.0 and v0.2.11 in-frame. Both misses are script limits seen in every build: the boat-mount check reads the wrong field, and the minecart isn't pushed from rest. The live sign, book, totem and keep_inventory checks on this PR's build give the in-frame results in the table. - `tools/parity.py --changed origin/main` on the Mac mini: ✅ 25 passed, 0 failed in 23.9 min (the harnesses that depend on these files, in the new in-frame default). | Check | Result | | --- | --- | | rustfmt | ✅ | | `cargo clippy --workspace --all-targets -- -D warnings` | ✅ | | `cargo test -p horizon-client` | ✅ 1040 + 95 + 18 + 7 passed, 0 failed | | Scope | ✅ 3 files, +17 −11 | ## Needs Ludovic Whether to hold today's Stable promotion. See the agent's report to the orchestrator. 🤖 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 04:10:05 +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#3517
No description provided.