When the chat is opened, it immediately exits when the Player dies, even if characters are inputted in there. This also affects inventory.
Reproduction:
1. Go into void.
2. While falling, open up chat and type a random command.
3. Chat immediately exits when the Player dies.
Linked issues
relates to 1
Comments 2

Intended, see MC-1663
Possibly work as intended.