Skip to content

Move repeat and shuffle status from metadata to controller state - #45

Merged
kahrendt merged 1 commit into
mainfrom
move-shuffle-and-repeat
May 7, 2026
Merged

kahrendt merged 1 commit into
mainfrom
move-shuffle-and-repeat

Conversation

@kahrendt

@kahrendt kahrendt commented May 7, 2026

Copy link
Copy Markdown
Contributor

Breaking change!

Moves repeat and shuffle status from the metadata state to the controller state to match the latest spec: Sendspin/spec#81

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the client library to match the latest Sendspin spec by relocating repeat/shuffle playback status from the metadata role state into the controller role state (breaking API change).

Changes:

  • Remove repeat/shuffle from ServerMetadataStateObject and its delta-merge/parsing logic.
  • Add repeat/shuffle to ServerStateControllerObject and parse them from server/state controller payloads.
  • Update TUI example and integration guide docs to read/display repeat/shuffle via the controller role.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/protocol.cpp Stops parsing/merging repeat/shuffle in metadata; adds parsing repeat/shuffle under controller state parsing.
src/protocol_messages.h Reorders internal helper/struct placement to align with the type move (no functional behavior change observed).
include/sendspin/metadata_role.h Removes repeat/shuffle fields and updates metadata role documentation accordingly.
include/sendspin/controller_role.h Introduces SendspinRepeatMode here and adds repeat/shuffle to controller state + updates docs/examples in comments.
examples/tui_client/tui.cpp Polls repeat/shuffle from controller state instead of metadata.
examples/tui_client/main.cpp Removes metadata-based repeat/shuffle updates in the metadata listener.
docs/integration-guide.md Updates controller role description and examples; removes repeat/shuffle from metadata role field list and sample code.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kahrendt
kahrendt merged commit 03715b6 into main May 7, 2026
8 checks passed
@kahrendt
kahrendt deleted the move-shuffle-and-repeat branch May 7, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants