[GH-ISSUE #1497] [server-thread] Block-container edits roll back on reload, losing or duplicating items #463

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

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

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc; equivalent disposable worlds, explicit --no-server-thread / --server-thread.

  1. Place an empty chest, quit normally, then reopen so its chunk is already saved.
  2. In survival, shift-click seven diamonds into it and close it. Reopening the menu shows all seven.
  3. Quit normally and reopen the world.

Expected: all seven remain in the chest.

Actual in server-thread: the chest is empty and the player's diamonds are gone. Reversing the transaction also duplicates items: withdraw seven from an already-saved chest, quit/reopen, and both player and chest contain seven. Old mode preserves the correct totals.

Repeated with full window mouse events, normal exit code 0 and no forced termination (extensions-storage-physical-a/physical-{deposit,withdraw}-*). No control-save command is used. It also rolls back after confirmed server chunk unloading without restart (actions-existing-chest-unload-b). Authoritative queries and saved regions confirm the rollback.

The same reduction affects barrels, disabled hoppers, shulker boxes and idle furnaces (extensions-storage-{a,b}; ore without fuel for the furnace). Driver: tools/singleplayer_save_boundary_audit.py.

Native 26.3 preserves edits across restart; its ChestMenu.quickMoveStack calls Slot.setChanged.

Hypothesis: server menu writes omit the chunk's modified notification. Comparator issue #1503 may share the missing callback.

Acceptance: deposits and withdrawals in existing block containers survive normal restart and chunk unloading without loss or duplication.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1497 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`; equivalent disposable worlds, explicit `--no-server-thread` / `--server-thread`. 1. Place an empty chest, quit normally, then reopen so its chunk is already saved. 2. In survival, shift-click seven diamonds into it and close it. Reopening the menu shows all seven. 3. Quit normally and reopen the world. Expected: all seven remain in the chest. Actual in **server-thread**: the chest is empty and the player's diamonds are gone. Reversing the transaction also duplicates items: withdraw seven from an already-saved chest, quit/reopen, and both player and chest contain seven. Old mode preserves the correct totals. Repeated with full window mouse events, normal exit code 0 and no forced termination (`extensions-storage-physical-a/physical-{deposit,withdraw}-*`). No control-save command is used. It also rolls back after confirmed server chunk unloading without restart (`actions-existing-chest-unload-b`). Authoritative queries and saved regions confirm the rollback. The same reduction affects **barrels, disabled hoppers, shulker boxes and idle furnaces** (`extensions-storage-{a,b}`; ore without fuel for the furnace). Driver: `tools/singleplayer_save_boundary_audit.py`. Native 26.3 preserves edits across restart; its `ChestMenu.quickMoveStack` calls `Slot.setChanged`. Hypothesis: server menu writes omit the chunk's modified notification. Comparator issue #1503 may share the missing callback. Acceptance: deposits and withdrawals in existing block containers survive normal restart and chunk unloading without loss or duplication.
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#463
No description provided.