Skip to content

Fix connection, discovery, sync, download, streaming, and Watch artwork bugs in ClementineKit - #99

Open
davidsansome wants to merge 3 commits into
mainfrom
review/ios-clementine-kit
Open

davidsansome wants to merge 3 commits into
mainfrom
review/ios-clementine-kit

Conversation

@davidsansome

Copy link
Copy Markdown
Member

Part 1 of 2 from the cross-repo code review (code-review-fixes), containing all Packages/ClementineKit fixes (35 files).

Summary

  • Fixes ClementineConnection, MessageChannel, RemoteCommand, RetryAfter, and RemoteSession connection/timeout/reconnect handling (temporarily retains RemoteSession.ban() until the stacked UI PR removes its caller).
  • Fixes ServiceBrowser discovery, InternetBrowser, LibraryStore/SearchStore/SongQuery, and WatchMessages JPEG cover dictionary transfer.
  • Fixes Renderer local-pause/resume state & seek completion, SongDownloader cancellation/ETag-resume & folder trim order, and Syncer/SyncEngine/SyncStore external sync cancellation, range mismatch handling, and partial file cleanup.

Verification

  • swift test in Packages/ClementineKit: 237 tests in 27 suites passed.
  • xcodebuild -project ClementineRemote.xcodeproj -scheme ClementineRemote -destination "generic/platform=iOS Simulator" DEVELOPMENT_TEAM= build -quiet: succeeded.
  • Claude Code review (claude-review) on combined changes: APPROVE.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Screenshots

From run 46267067153, against a real Clementine. Left: main. Right: this pull request, light and dark.

Screen main This PR This PR, dark
01_connect
02_queue
03_player
04_connection
05_settings
06_library
07_library_album
08_search
09_outputs
10_internet
11_internet_radio
fold_outer_player –

Screens at a failure

dark_failure

failure

@davidsansome
davidsansome force-pushed the review/ios-clementine-kit branch from c64c355 to e74b8aa Compare November 27, 2026 10:15
…rk bugs in ClementineKit

Fixes connection teardown and retry backoff, service discovery resolution, Renderer pause/resume and seek completion, SongDownloader cancellation/resume and filename sanitization, Syncer/SyncEngine/SyncStore cancellation and partial-file sweeping, and WatchLink artwork transfer encoding. Temporarily keeps RemoteSession.ban() until the stacked UI PR removes its caller.

Release-note: Improved connection reliability, service discovery, remote streaming playback switching, downloads, sync cancellation/resume, and Apple Watch artwork delivery.
@davidsansome
davidsansome force-pushed the review/ios-clementine-kit branch from e74b8aa to 83eeff7 Compare November 27, 2026 10:24
…egate callbacks

Registering the transfer before entering the cancellation handler and guarding continuation storage in a Mutex prevents early task cancellation from dropping didCompleteWithError and leaking the continuation.
Checking session connection state before querying manifests or HTTP servers and treating SyncConnectionError.notConnected as cancellation prevents SyncEngine from waiting 60 seconds per remaining rule or pruning tracks on a dropped connection.
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