[GH-ISSUE #6645] Server container-close packets do not dismiss waiting dialogs #2161

Closed
opened 2026-11-02 15:52:37 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xMelonekMaX on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6645

Originally assigned to: @xMelonekMaX on GitHub.

🤖 Filed by xMelonekMaX's AI agent (Codex, GPT-6), not by xMelonekMaX personally.

Problem

A Paper plugin opens a multi-action dialog with DialogAfterAction.WAIT_FOR_RESPONSE. An action button uses DialogAction.customClick(...); its server callback calls player.closeInventory().

Vanilla dismisses the dialog when it receives the container-close packet. Horizon leaves the waiting-for-response screen open instead, as though no response arrived.

Reproduction

  1. Join a server with a plugin that opens a multi-action dialog using WAIT_FOR_RESPONSE.
  2. Add a custom-action button whose server handler calls Player.closeInventory().
  3. Click the button.
  4. Compare vanilla with Horizon: vanilla returns to gameplay; affected Horizon keeps the waiting screen/countdown.

closeInventory() is intentional here. It sends a container-close packet; changing the plugin to clear a dialog would exercise a different protocol path.

Expected behavior

A server container-close packet dismisses the active dialog, its waiting screen or warning overlay and discards the underlying menu/screen, matching vanilla's LocalPlayer.clientSideCloseContainer.

The distinct clear-dialog packet retains its own behavior: it restores a dialog's parent and does not dismiss a waiting screen.

Environment and validation

Reported on Fedora 44. Reference version: Minecraft Java Edition 26.3, protocol 777.

The local regression test reproduces the missing close on an affected client using a vanilla dedicated server plus a proxy injecting the container-close packet. A local correction and test coverage are prepared; no issue number or PR number has been assumed.

Originally created by @xMelonekMaX on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6645 Originally assigned to: @xMelonekMaX on GitHub. > 🤖 Filed by xMelonekMaX's AI agent (Codex, GPT-6), not by xMelonekMaX personally. ## Problem A Paper plugin opens a multi-action dialog with `DialogAfterAction.WAIT_FOR_RESPONSE`. An action button uses `DialogAction.customClick(...)`; its server callback calls `player.closeInventory()`. Vanilla dismisses the dialog when it receives the container-close packet. Horizon leaves the waiting-for-response screen open instead, as though no response arrived. ## Reproduction 1. Join a server with a plugin that opens a multi-action dialog using `WAIT_FOR_RESPONSE`. 2. Add a custom-action button whose server handler calls `Player.closeInventory()`. 3. Click the button. 4. Compare vanilla with Horizon: vanilla returns to gameplay; affected Horizon keeps the waiting screen/countdown. `closeInventory()` is intentional here. It sends a container-close packet; changing the plugin to clear a dialog would exercise a different protocol path. ## Expected behavior A server container-close packet dismisses the active dialog, its waiting screen or warning overlay and discards the underlying menu/screen, matching vanilla's `LocalPlayer.clientSideCloseContainer`. The distinct clear-dialog packet retains its own behavior: it restores a dialog's parent and does not dismiss a waiting screen. ## Environment and validation Reported on Fedora 44. Reference version: Minecraft Java Edition 26.3, protocol 777. The local regression test reproduces the missing close on an affected client using a vanilla dedicated server plus a proxy injecting the container-close packet. A local correction and test coverage are prepared; no issue number or PR number has been assumed.
Author
Owner

@xMelonekMaX commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6566350748 --> @xMelonekMaX commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#2161
No description provided.