Badges don't show it seems when other actions happen in addition to a comment, such as an inline comment in differential or closing a task with a comment action.
Revisions and Commits
I suppose I could just put a number in a circle if you have more than two, forcing you to hover and see the tokens, but fundamentally the main reason I'm opposed to lots of badges is that it greatly diminishes the value of them. I'd love this to be a system where there are 100's of badges -- but you (or we programmatically) need to pick the best two to follow you everywhere. The rest need to stay at the Pokemon Center.
Here's the remaining bug: when a transaction group mixes a comment and another action, badges are not shown, even though we render the profile image in large size and have space to show them. Here's a screenshot of the bug from this task:
Badges should be shown in the red circle, but are not. I believe the problem is that the first group is "reopen + comment" (does not work), while the second group is comment only (works properly).
D13708 is the change which implemented the original behavior.
I haven't looked at it, so I don't know how easy this is to fix.