mojira.dev
MC-300457

Dialog is unescapable when action or exit_action is set to run_command with a command that would produce a signed chat message

If you use run_commandaction type and run a command with all of following condition match in dialog action, the dialog is unescapable even set the option can_close_with_escape to true.
1. Commands that needs to signed with the Secure Chat system.
2. Commands that is formmated correctly.

How to reproduce:
1. create a world with command permmision is on.
2. type the following command and press Enter to execute:

/dialog show @s {type:notice,title:"Force AFK 3000",action:{label:"you can click me but still lol",action:{type:"run_command",command:"say hi"}}}

3. Press Esc and try to escape.

You can only escape by clicking the dialog hint button and leave the game.

Comments 0

No comments.

Xiang990293

boq

Confirmed

Platform

Low

Commands

1.21.8, 25w31a

25w33a

Retrieved