Description
When trying to do Minecraft's item copy in creative mode (using mouse wheel click), and when there is no slots remaining in hotbar, the pre-existing item goes into the player's inventory. However, when the inventory is not being watched, the item in the inventory remains to be the client side, and when player changes the gamemode (survival / adventure) or use the inventory command like `/clear`, the item becomes completely client side. (Before those actions, in creative mode, simply just watching the inventory makes it server-side)
Steps to Reproduce
Fill hotbar with any item
Wheel click (copy item, doesn't matter whether it is a ctrl (nbt) click or not) any item which is not in hotbar in Step #1
Change your gamemode or use `/clear` and see the inventory.
Expected Behavior
The items in inventory must be server-side, and should be able to interact with it.
`/clear` should clear the inventory, including the items in inventory.
Observed Behavior
The item becomes client-side and not a single interaction successfully works
`/clear` doesn't remove those items.
Related issues
Attachments
Comments


Please attach a screenshot of this occurring while the F3 debug screen is enabled.
This issue is being temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Tested in 1.17.1, Single player, vanilla client
Still '/clear' does not clear the entire inventory.

This is MC-86455.