[PR #4820] [MERGED] Dedicated servers warn operators of low disk space #5872

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4820
Author: @levzzz5154
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: parity/R2-disk


📝 Commits (1)

  • 5a70e0b Dedicated servers send ClientboundLowDiskSpaceWarningPacket to operators

📊 Changes

5 files changed (+32 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/chunk_io.rs (+13 -0)
📝 crates/horizon-client/src/game/dedicated.rs (+7 -0)
📝 crates/horizon-client/src/game/remote.rs (+2 -0)
📝 crates/horizon-client/src/lan/hub.rs (+8 -0)
📝 crates/horizon-protocol/src/packets/play.rs (+2 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3518

Rows

  • IntegratedServer.reportChunkLoadFailure (dedicated): DedicatedServer.sendLowDiskSpaceWarning is now ported. A chunk load or save failure that finds low disk space on a dedicated server sends ClientboundLowDiskSpaceWarningPacket (new Clientbound::LowDiskSpaceWarning, id 51) to every player with PermissionLevel.ADMINS (3) or more, from the dedicated tick (Hub::send_low_disk_space_warning). A client that receives it toasts SystemToast.onLowDiskSpace (ClientPacketListener.handleLowDiskSpaceWarning -> Minecraft.sendLowDiskSpaceWarning). Dedicated servers show no load/save toasts, as in vanilla (only IntegratedServer overrides those).

Vanilla followed

DedicatedServer.sendLowDiskSpaceWarning, MinecraftServer.warnOnLowDiskSpace/reportChunk*Failure, ClientPacketListener.handleLowDiskSpaceWarning.

Tests

chunk_io::tests::a_servers_warning_packet_toasts_low_disk_space, protocol clientbound_round_trips. fmt, clippy -D warnings clean. Not run: harnesses (CI).

🤖 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/4820 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/R2-disk` --- ### 📝 Commits (1) - [`5a70e0b`](https://github.com/horizon-rust/horizon/commit/5a70e0ba0d769f65d6ab827e5b9c079b9dd6ca1d) Dedicated servers send ClientboundLowDiskSpaceWarningPacket to operators ### 📊 Changes **5 files changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/chunk_io.rs` (+13 -0) 📝 `crates/horizon-client/src/game/dedicated.rs` (+7 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -0) 📝 `crates/horizon-client/src/lan/hub.rs` (+8 -0) 📝 `crates/horizon-protocol/src/packets/play.rs` (+2 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 ## Rows - `IntegratedServer.reportChunkLoadFailure (dedicated)`: `DedicatedServer.sendLowDiskSpaceWarning` is now ported. A chunk load or save failure that finds low disk space on a dedicated server sends `ClientboundLowDiskSpaceWarningPacket` (new `Clientbound::LowDiskSpaceWarning`, id 51) to every player with `PermissionLevel.ADMINS` (3) or more, from the dedicated tick (`Hub::send_low_disk_space_warning`). A client that receives it toasts `SystemToast.onLowDiskSpace` (`ClientPacketListener.handleLowDiskSpaceWarning` -> `Minecraft.sendLowDiskSpaceWarning`). Dedicated servers show no load/save toasts, as in vanilla (only `IntegratedServer` overrides those). ## Vanilla followed `DedicatedServer.sendLowDiskSpaceWarning`, `MinecraftServer.warnOnLowDiskSpace/reportChunk*Failure`, `ClientPacketListener.handleLowDiskSpaceWarning`. ## Tests `chunk_io::tests::a_servers_warning_packet_toasts_low_disk_space`, protocol `clientbound_round_trips`. fmt, clippy -D warnings clean. Not run: harnesses (CI). 🤖 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 05:15:34 +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#5872
No description provided.