Skip to content

Soundcloud runs#116

Merged
errkk merged 6 commits into
masterfrom
soundcloud-runs
Jun 26, 2026
Merged

Soundcloud runs#116
errkk merged 6 commits into
masterfrom
soundcloud-runs

Conversation

@errkk

@errkk errkk commented Jun 25, 2026

Copy link
Copy Markdown
Owner

No description provided.

errkk and others added 6 commits June 25, 2026 21:45
Parked investigation surfaced during the SoundCloud spike. Points at
set_current_transaction and the suspicious two-pass set_current/1 no-match
clause.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Play the queue as single-provider runs. Queue.current_run/0 returns the
contiguous same-provider block at the head of the unplayed queue;
sync_playlist loads only that run into its provider's playlist and returns
the active provider; trigger_playlist matches that provider's Sonos
favourite. An all-Spotify queue is one run, so existing behaviour is
unchanged. Mixed queues go idle at each boundary and re-trigger the next run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Records what's deployed/merged/wip, marks the section 0 gates resolved with
the discovered object_id shape and API quirks, annotates the order of work,
and adds section 12 (setup parity: pick the SoundCloud playlist from a list
fetched from the API instead of a hardcoded env var).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
At an idle boundary with tracks remaining, the just-finished run's last
track was still marked playing (not played), so Queue.current_run returned
the same run again and the provider never switched. Bump it first (as skip
does) to make the boundary deterministic instead of depending on an
empty-metadata webhook arriving within the 1s window.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Track the actually-playing provider in PlayState, broadcast it, and show a
small icon in the header gated behind FF_PROVIDER_SWITCHER or trusted user.
Log provider switches and the run-boundary re-trigger flow for inspection.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@errkk errkk merged commit 6fb6860 into master Jun 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant