On the latest forge I have noticed that my diamond tools (likely to be others) are not mending whilst you have the villager trading screen open. Once the UI closes, the tool health updates but not whilst you have the screen open.
Happily provide more details if required.