In the playlist actually, with mouse hovering over the displayed stars (no context menu).
But now I tested it in the player panel too, same problem.
Also in the tag editor, same problem if you don't hit the save button on the right upper corner.
(Again it's only problematic when the track itself is playing in all cases.)
I'm not sure why it behaved differently now then ages ago. Maybe it was even before 2.3? Not sure when that was.
But I can't resolve it via mere code on my end I think, since I don't have the necessary event/info at exact moment when the user does the rating change action.
In any case, isn't it also just logical that the rating events happen immediately and not only after the track stops playing (and the tags are saved)? The user can know by experience that it has not been saved and there is a save event in any case after that, also as audio in my addon.
I'll add
my latest private version of my addon here to maybe better understand what I find not logical.
It registers the command "Speak Back - Show debug trace", so you can "keyboard-shortcut" that and get some debug info from the adddon, after some rating changes which you should then hear.