With one of the newest java snapshots, the mending has been updated with the prioritizing of the tool of lower durability as the "tool of need" for the xp orbs to mend.
Steps to Reproduce:
Get one tool and full armor with mending
damage the tool until its almost dead
Summon some xp orbs
hold the tool
Set your gamemode to survival and walk towards those orbs.
Observed Results:
You will see the xp bar being filled even tho the tool hasn't been repaird
Expected Results:
The tool should be repaird before the xp bar starts to fill
Screenshots/Videos attached: Not available footage
Thank you for your report!
We're tracking this issue in MCPE-80156, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki