You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(spirc): suppress stale cluster resume echo after local pause
When the player presses pause (A), an in-flight PUT(playing=true) from
the preceding periodic notify can arrive at Spotify before our
PUT(playing=false). Spotify echoes the cluster back as is_playing=true,
which was hitting the host-resume branch and un-pausing playback ~1s
after the button press.
Fix: notify(false) sets local_pause_pending_. The cluster handler
checks this flag before treating a playing=true cluster update as a
host resume — if set, it re-pushes paused state instead. The flag
is cleared when the cluster confirms paused, when the host sends an
explicit resume command, or when the player resumes locally.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>