Files
minstrel/web/src
bvandeusenandClaude Opus 5.5 0c9faeca9f fix(web): a song on repeat is a play per listen, and a stall before play_started answers doesn't record it twice (#8071, #8072)
The events dispatcher keyed a play on the track id, so repeat-one, a
one-track queue on repeat-all, or the same song twice in a row stayed one
play, closed at the last loop's position and usually graded a skip. The
player store now counts listens (player.listen moves whenever playback
starts an item from its beginning) and the dispatcher keys a play on
(track, listen).

play_started's reply was adopted only while still 'playing', and nothing
marked a start in flight, so a stall or pause just after starting threw the
id away and the next 'playing' posted a second start, which closed the
first as a skip. The dispatcher now holds the pending listen and adopts the
reply whenever that listen is still current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:06:08 -05:00
..