Any change to the item stack held by the player in their off hand slot does not cause it to update visually on the client if a GUI is open, until the GUI is closed.
How to reproduce:
Give yourself a few of some type of item and stack them together in your off hand slot.
Place a chest.
Drop one item from your off hand slot and quickly open the chest.
Wait until you pick the item back up.
-> ❌ The number of items in your off hand slot doesn’t update.Close the chest’s GUI.
-> ✔ The number of items in your off hand slot updates.
Expected result:
Changes to the player’s off hand slot would always display on the client immediately.
Observed result:
Changes to the player’s off hand slot do not display on the client if a GUI is open, until the GUI is closed.
Can confirm. This also works without a storage block, only using the player inventory.