[PR #7173] [MERGED] Add live autosave management setting #7392

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

📋 Pull Request Information

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

Base: main ← Head: fix/server-management-autosave


📝 Commits (1)

  • ad4634e Add live autosave management setting

📊 Changes

6 files changed (+85 additions, -12 deletions)

View changed files

📝 crates/horizon-client/src/game/dedicated.rs (+22 -8)
📝 crates/horizon-client/src/game/dedicated/management.rs (+16 -1)
📝 crates/horizon-server/src/management_methods.rs (+24 -0)
📝 tools/port_map/rest-013.tsv (+2 -2)
📝 tools/port_map/rest-017.tsv (+1 -0)
📝 tools/test_management_protocol_parity.py (+20 -1)

📄 Description

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

What and why

Add live minecraft:serversettings/autosave get/set support. The setting changes the same server save flag as save-on and save-off, and resets to enabled when the server restarts, as vanilla does. Also fix the existing disabled-autosave tick path so it advances the save schedule without writing a periodic save. Part of #6597.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

MinecraftServerSettingsServiceImpl.isAutoSave, MinecraftServerSettingsServiceImpl.setAutoSave, MinecraftServer.isAutoSave, MinecraftServer.setAutoSave, and MinecraftServer.autoSave. Extended tools/test_management_protocol_parity.py against vanilla 26.3.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main, against upstream/main at a90ee282a, 5 min 28 s)

Check Result
Scope ✅ 6 files, +85 −12
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 0 s)
rustfmt ✅ (7 s)
clippy ✅ (37 s)
tests: horizon-client, horizon-server ✅ 773 passed (2 min 24 s)
doc tests ✅ (1 min 5 s)
mod API up to date ✅ (15 s)
Parity ➖ not run by --quick; CI selects the affected harnesses

Supplemental live protocol comparison: all 77 JSON-RPC replies and six connection/TLS checks matched vanilla, including invalid input and autosave resetting to true after restart. The harness reached its separate discovery-schema check, which could not run because that generated schema artifact is absent locally.


🔄 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/7173 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-management-autosave` --- ### 📝 Commits (1) - [`ad4634e`](https://github.com/horizon-rust/horizon/commit/ad4634e363ad897fe1d917ea03031d436346104e) Add live autosave management setting ### 📊 Changes **6 files changed** (+85 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated.rs` (+22 -8) 📝 `crates/horizon-client/src/game/dedicated/management.rs` (+16 -1) 📝 `crates/horizon-server/src/management_methods.rs` (+24 -0) 📝 `tools/port_map/rest-013.tsv` (+2 -2) 📝 `tools/port_map/rest-017.tsv` (+1 -0) 📝 `tools/test_management_protocol_parity.py` (+20 -1) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-5.6), not by TiggerTakkyTTT personally. ## What and why Add live `minecraft:serversettings/autosave` get/set support. The setting changes the same server save flag as `save-on` and `save-off`, and resets to enabled when the server restarts, as vanilla does. Also fix the existing disabled-autosave tick path so it advances the save schedule without writing a periodic save. Part of #6597. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `MinecraftServerSettingsServiceImpl.isAutoSave`, `MinecraftServerSettingsServiceImpl.setAutoSave`, `MinecraftServer.isAutoSave`, `MinecraftServer.setAutoSave`, and `MinecraftServer.autoSave`. Extended `tools/test_management_protocol_parity.py` against vanilla 26.3. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main`, against upstream/main at `a90ee282a`, 5 min 28 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +85 −12 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 0 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (37 s) | | tests: horizon-client, horizon-server | ✅ 773 passed (2 min 24 s) | | doc tests | ✅ (1 min 5 s) | | mod API up to date | ✅ (15 s) | | Parity | ➖ not run by `--quick`; CI selects the affected harnesses | Supplemental live protocol comparison: all 77 JSON-RPC replies and six connection/TLS checks matched vanilla, including invalid input and autosave resetting to `true` after restart. The harness reached its separate discovery-schema check, which could not run because that generated schema artifact is absent locally. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:52 +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#7392
No description provided.