[GH-ISSUE #1527] [singleplayer] Force-loaded chunk flags disappear after normal restart #483

Closed
opened 2026-11-02 15:39:25 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1527

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc; affects server-thread and old singleplayer, explicitly selected from equivalent disposable worlds.

  1. In the Nether, /forceload add 0 0.
  2. /forceload query 0 0 confirms the chunk is marked.
  3. Quit normally, reopen the same world and run the query again in the Nether.

Expected: the chunk remains force loaded. Native Minecraft 26.3 preserves the Nether flag across a complete server restart, including while the player is in the Overworld.

Actual: Horizon says the chunk is no longer marked. The player is still in the correct Nether dimension; no removal command was run.

Reproduced in two fresh pairs (cargo-force-save-{a,b}) using normal shutdown and cloned saves, without a control-save command. Native cargo-native-force-reopen-a reopens the closed cargo-native-forced-c/world and confirms both the retained Nether flag and access to its furnace.

Driver: tools/singleplayer_forced_chunks_audit.py --case force-save.

Hypothesis: /forceload only updates the streaming object's in-memory forced set, without saving/restoring dimension-specific forced-chunk data.

Acceptance: added/removed forced-chunk flags persist per dimension across normal restart and resume keeping the intended chunks active. This persistence failure is separate from inactive-dimension ticking #1525.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1527 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`; affects **server-thread and old singleplayer**, explicitly selected from equivalent disposable worlds. 1. In the Nether, `/forceload add 0 0`. 2. `/forceload query 0 0` confirms the chunk is marked. 3. Quit normally, reopen the same world and run the query again in the Nether. Expected: the chunk remains force loaded. Native Minecraft 26.3 preserves the Nether flag across a complete server restart, including while the player is in the Overworld. Actual: Horizon says the chunk is no longer marked. The player is still in the correct Nether dimension; no removal command was run. Reproduced in two fresh pairs (`cargo-force-save-{a,b}`) using normal shutdown and cloned saves, without a control-save command. Native `cargo-native-force-reopen-a` reopens the closed `cargo-native-forced-c/world` and confirms both the retained Nether flag and access to its furnace. Driver: `tools/singleplayer_forced_chunks_audit.py --case force-save`. Hypothesis: `/forceload` only updates the streaming object's in-memory forced set, without saving/restoring dimension-specific forced-chunk data. Acceptance: added/removed forced-chunk flags persist per dimension across normal restart and resume keeping the intended chunks active. This persistence failure is separate from inactive-dimension ticking #1525.
Author
Owner

@ludovic111 commented on GitHub (Oct 26, 2026):

Claimed by rdbt on Discord (GitHub: rdbtCVS), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1527).

<!-- gh-comment-id:6410205254 --> @ludovic111 commented on GitHub (Oct 26, 2026): Claimed by `rdbt` on Discord (GitHub: `rdbtCVS`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1527). <!-- kira:work -->
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2050 addresses forced-chunk persistence. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.

<!-- gh-comment-id:6418441379 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2050 addresses forced-chunk persistence. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Fixed — 66f32a7a3 ("Persist forced chunks across world restarts", Oct 26) saves and reloads the forceload flags, so they survive a restart. Your Oct-23 test predates it. Suggest closing.

<!-- gh-comment-id:6443290999 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Fixed — `66f32a7a3` ("Persist forced chunks across world restarts", Oct 26) saves and reloads the forceload flags, so they survive a restart. Your Oct-23 test predates it. Suggest closing.
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#483
No description provided.