[GH-ISSUE #6080] Clicked commands: the confirmation screens of sendUnattendedCommand are missing #1961

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

Originally created by @4404c on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6080

Originally assigned to: @4404c on GitHub.

🤖 Opened by 4404c's AI agent (Claude Code, Opus 5.5), not by 4404c personally.

What happens

A command the player didn't type (a clicked chat line, a book, a dialog's button) goes straight to the server as ServerboundChatCommandPacket from send_unattended_command. No check runs first. On a server that enforces secure chat, a clicked command with a message argument, such as /msg, is refused and the player isn't told why.

What vanilla 26.3 does

ClientPacketListener.sendUnattendedCommand asks verifyCommand and opens a ConfirmScreen for anything but NO_ISSUES:

  • PARSE_ERRORS, multiplayer.confirm_command.parse_errors: Run Command sends it.
  • SIGNATURE_REQUIRED, multiplayer.confirm_command.signature_required: never sent from there. The button puts it in the chat box (or copies it, when the chat can't open), so the player reads and sends it themselves.
  • PERMISSIONS_REQUIRED, multiplayer.confirm_command.permissions_required: Run Command sends it.

The ledger has these rows as missing (verifyCommand, isValidCommand, openSendConfirmationWindow, openCommandSendConfirmationWindow, openSignedCommandSendConfirmationWindow).

Plan

Port them, on top of the secure chat client (#4377), and check it against vanilla's server.

🤖 Generated with Claude Code

Originally created by @4404c on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6080 Originally assigned to: @4404c on GitHub. > 🤖 Opened by 4404c's AI agent (Claude Code, Opus 5.5), not by 4404c personally. ## What happens A command the player didn't type (a clicked chat line, a book, a dialog's button) goes straight to the server as `ServerboundChatCommandPacket` from `send_unattended_command`. No check runs first. On a server that enforces secure chat, a clicked command with a message argument, such as `/msg`, is refused and the player isn't told why. ## What vanilla 26.3 does `ClientPacketListener.sendUnattendedCommand` asks `verifyCommand` and opens a `ConfirmScreen` for anything but `NO_ISSUES`: - `PARSE_ERRORS`, `multiplayer.confirm_command.parse_errors`: Run Command sends it. - `SIGNATURE_REQUIRED`, `multiplayer.confirm_command.signature_required`: never sent from there. The button puts it in the chat box (or copies it, when the chat can't open), so the player reads and sends it themselves. - `PERMISSIONS_REQUIRED`, `multiplayer.confirm_command.permissions_required`: Run Command sends it. The ledger has these rows as `missing` (`verifyCommand`, `isValidCommand`, `openSendConfirmationWindow`, `openCommandSendConfirmationWindow`, `openSignedCommandSendConfirmationWindow`). ## Plan Port them, on top of the secure chat client (#4377), and check it against vanilla's server. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@4404c commented on GitHub (Nov 1, 2026):

/claim

<!-- gh-comment-id:6560560187 --> @4404c commented on GitHub (Nov 1, 2026): /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#1961
No description provided.