Keep realtime progress synchronized while BookWave is foregrounded #5

Merged
alexander merged 10 commits from mcp/recreate-pr-171 into main 2026-09-18 23:21:58 +02:00
Owner

Recreated from GitHub PR #171 during the Forgejo migration. This PR is the Forgejo counterpart of that GitHub PR.

Original GitHub PR: https://github.com/AlexanderWilhelmsenBerg/Audiobookshelf-Manager-Claude/pull/171
Original implementation branch: feat/133-foreground-realtime-sync-clean
Forgejo issue: #40 — Keep realtime progress synchronized while BookWave is foregrounded (migrated from GitHub issue #133)

Scope

Moves realtime progress ownership to the application foreground lifecycle so websocket-driven progress stays synchronized while BookWave is foregrounded, without coupling synchronization to the Home UI.

The implementation preserves the existing reconciliation and conflict boundaries:

  • serialized foreground lifecycle ownership;
  • cancellation when switching account/profile context;
  • existing SyncAccountUseCase reconciliation;
  • LibraryRepository.writeProgress as the conflict/persistence boundary;
  • no playback seeking as a side effect of realtime synchronization.

Validation / handoff

This Forgejo PR points at the same implementation head as the migrated GitHub work: d5e6e5c2be02f54029682ddd40537a3c16190ce8.

The original implementation work included focused JVM coverage and documented manual device checks. At the last GitHub handoff, wrapper validation, secret scan, Room schema checks, dependency/licence reporting and ktlint were green while the full verifyDebug / classpath gate was still completing.

No merge requested. Review and merge manually after Forgejo CI has validated the recreated PR.

Recreated from GitHub PR #171 during the Forgejo migration. This PR is the Forgejo counterpart of that GitHub PR. Original GitHub PR: https://github.com/AlexanderWilhelmsenBerg/Audiobookshelf-Manager-Claude/pull/171 Original implementation branch: `feat/133-foreground-realtime-sync-clean` Forgejo issue: #40 — Keep realtime progress synchronized while BookWave is foregrounded (migrated from GitHub issue #133) ## Scope Moves realtime progress ownership to the application foreground lifecycle so websocket-driven progress stays synchronized while BookWave is foregrounded, without coupling synchronization to the Home UI. The implementation preserves the existing reconciliation and conflict boundaries: - serialized foreground lifecycle ownership; - cancellation when switching account/profile context; - existing `SyncAccountUseCase` reconciliation; - `LibraryRepository.writeProgress` as the conflict/persistence boundary; - no playback seeking as a side effect of realtime synchronization. ## Validation / handoff This Forgejo PR points at the same implementation head as the migrated GitHub work: `d5e6e5c2be02f54029682ddd40537a3c16190ce8`. The original implementation work included focused JVM coverage and documented manual device checks. At the last GitHub handoff, wrapper validation, secret scan, Room schema checks, dependency/licence reporting and ktlint were green while the full `verifyDebug` / classpath gate was still completing. No merge requested. Review and merge manually after Forgejo CI has validated the recreated PR.
fix(sync): scope injected application coroutine correctly
Some checks failed
Pull request / Gradle wrapper validation (pull_request) Has been cancelled
Pull request / Secret scan (pull_request) Has been cancelled
Pull request / Committed Room schemas are immutable (pull_request) Has been cancelled
Pull request / verifyDebug (pull_request) Has been cancelled
Pull request / Dependency and licence report (pull_request) Has been cancelled
Pull request / Classpath rerun acceptance (pull_request) Has been cancelled
Sync APK PR picker / Refresh open PR choices (pull_request_target) Has been cancelled
d5e6e5c2be
alexander force-pushed mcp/recreate-pr-171 from d5e6e5c2be
Some checks failed
Pull request / Gradle wrapper validation (pull_request) Has been cancelled
Pull request / Secret scan (pull_request) Has been cancelled
Pull request / Committed Room schemas are immutable (pull_request) Has been cancelled
Pull request / verifyDebug (pull_request) Has been cancelled
Pull request / Dependency and licence report (pull_request) Has been cancelled
Pull request / Classpath rerun acceptance (pull_request) Has been cancelled
Sync APK PR picker / Refresh open PR choices (pull_request_target) Has been cancelled
to 8da001c05a 2026-09-18 22:50:37 +02:00
Compare
alexander deleted branch mcp/recreate-pr-171 2026-09-18 23:21:58 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alexander/Audiobookshelf-Manager-Claude!5
No description provided.