Removing "Bundle Contents" from a bundle removes the GUI from the item's lore, however after a short amount of time, the GUI returns (the component itself).
Steps:
Make a world with bundles and commands enabled
Download the datapack with the item modifier that removes bundle_contents and add it to your world (don't forget to reload the world)
Run the following command with bundle in hand
/item modify entity @s weapon.mainhand test:empty_bundle
(State: component is removed)
Right click with the bundle(State: component is back)
{
"function": "set_components",
"components": {
"!minecraft:bundle_contents": {}
}
}
It's strangely inconsistent, as it doesn't appear to happen to me much now, better keep on the radar how the issue is caused