[PR #7071] [MERGED] Write vanilla's join lines to latest.log, for launchers' "continue playing" #7314

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7071
Author: @GIGABAIT93
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: feat/vanilla-join-log-lines


📝 Commits (2)

  • 6f480a9 Write vanilla's join lines to latest.log for launchers
  • c2ae983 rustfmt

📊 Changes

2 files changed (+47 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+10 -0)
📝 crates/horizon-client/src/net.rs (+37 -1)

📄 Description

🤖 Opened by GIGABAIT93's AI agent (Claude Code, Claude Opus 5.5), not by GIGABAIT93 directly.

Closes #7032

What

Two INFO lines vanilla 26.3 writes to logs/latest.log and Horizon didn't. Launchers read the last of them, in latest.log and the *.log.gz archives, to offer "continue playing": the last server or world. They do this for vanilla and for every loader.

  • A join starts (ConnectScreen.connect), from a "Server Connector #N" thread, as vanilla names it:
    [12:36:30] [Server Connector #1/INFO]: Connecting to 127.0.0.1, 25599
    The host is as the player gave it and the port is always there (25565 when none was given), taken from parse_address before the SRV lookup, as vanilla's ServerAddress. A friend's invite code (friend:…) takes its own path and is never logged, because it holds a secret.
  • A single-player world opens (IntegratedServer.initServer), on the "Server thread":
    [12:36:49] [Server thread/INFO]: Starting integrated minecraft server version 26.3
    It is written in open_world, before the choice between the server thread and the in-frame path, so every single-player open logs it.

Both go through logging::write_as, so latest.log shows vanilla's thread names. Nothing else changes.

Proof

Both lines above come from a real latest.log, from a release build of this branch on Windows 11. The first is from a join to a local test server, the second from opening a world with --world LogTest.

Tests

net::tests::the_connecting_line_is_vanillas checks the default port, an explicit port and an IPv6 address in brackets.

pr_ready (tools/pr_ready.py --quick --base upstream/main on GIGABAIT, against upstream/main at 383e7354c, 10 min 11 s)

Check Result
Scope ✅ 2 files, +41 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 611 passed (57 s)
rustfmt ❌ failed (13 s); fixed by c2ae983c9, cargo fmt --all --check is now clean
clippy ✅ (3 min 36 s)
tests: horizon-client, horizon-client-lib ✅ 2068 passed (5 min 16 s)
doc tests ✅ 0 passed (8 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/7071 **Author:** [@GIGABAIT93](https://github.com/GIGABAIT93) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/vanilla-join-log-lines` --- ### 📝 Commits (2) - [`6f480a9`](https://github.com/horizon-rust/horizon/commit/6f480a9d26216cbed3322ce4bb0113bcec3edd38) Write vanilla's join lines to latest.log for launchers - [`c2ae983`](https://github.com/horizon-rust/horizon/commit/c2ae983c9304e0d25247d0cc61f86f9bd2de8e98) rustfmt ### 📊 Changes **2 files changed** (+47 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+10 -0) 📝 `crates/horizon-client/src/net.rs` (+37 -1) </details> ### 📄 Description > 🤖 Opened by GIGABAIT93's AI agent (Claude Code, Claude Opus 5.5), not by GIGABAIT93 directly. Closes #7032 ## What Two INFO lines vanilla 26.3 writes to `logs/latest.log` and Horizon didn't. Launchers read the last of them, in `latest.log` and the `*.log.gz` archives, to offer "continue playing": the last server or world. They do this for vanilla and for every loader. - **A join starts** (`ConnectScreen.connect`), from a "Server Connector #N" thread, as vanilla names it: `[12:36:30] [Server Connector #1/INFO]: Connecting to 127.0.0.1, 25599` The host is as the player gave it and the port is always there (25565 when none was given), taken from `parse_address` before the SRV lookup, as vanilla's `ServerAddress`. A friend's invite code (`friend:…`) takes its own path and is never logged, because it holds a secret. - **A single-player world opens** (`IntegratedServer.initServer`), on the "Server thread": `[12:36:49] [Server thread/INFO]: Starting integrated minecraft server version 26.3` It is written in `open_world`, before the choice between the server thread and the in-frame path, so every single-player open logs it. Both go through `logging::write_as`, so `latest.log` shows vanilla's thread names. Nothing else changes. ## Proof Both lines above come from a real `latest.log`, from a release build of this branch on Windows 11. The first is from a join to a local test server, the second from opening a world with `--world LogTest`. ## Tests `net::tests::the_connecting_line_is_vanillas` checks the default port, an explicit port and an IPv6 address in brackets. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on GIGABAIT, against upstream/main at 383e7354c, 10 min 11 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +41 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 611 passed (57 s) | | rustfmt | ❌ failed (13 s); fixed by c2ae983c9, `cargo fmt --all --check` is now clean | | clippy | ✅ (3 min 36 s) | | tests: horizon-client, horizon-client-lib | ✅ 2068 passed (5 min 16 s) | | doc tests | ✅ 0 passed (8 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 06:37:36 +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#7314
No description provided.