Mining deepslate: Toolwise switched from the sword to the diamond pickaxe on its own.
Hitting a mob: Toolwise switched from the pickaxe to the diamond sword.
A wooden pickaxe with 1 use left is kept instead of being used up.
/toolwise shows and changes all settings in game.