I found a way to recreate this bug in 26.1 Snapshot 6.
Spawn a wolf and feed it a bone.
Spawn a sheep nearby and kill it after the wolf gets angry but before the wolf kills it.
Note that this method only works sometimes. In other times, the wolf becomes calm.
Can confirm in 1.20.1
accidentally created this bug report, please close