Skip to content

fix: reconcile deleted sync items and smooth incremental progress#550

Merged
everpcpc merged 2 commits intomainfrom
codex/sync-reconcile-deletions
Feb 23, 2026
Merged

fix: reconcile deleted sync items and smooth incremental progress#550
everpcpc merged 2 commits intomainfrom
codex/sync-reconcile-deletions

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • split incremental sync and deletion reconciliation into separate steps for series/books to make behavior explicit
  • reconcile stale local entities against server IDs for books/series/collections/readlists and clean orphaned offline files after stale book cleanup
  • run deletion reconciliation periodically (or on force full sync), prefer unpaged ID fetch with paged fallback, and improve sync progress mapping for large libraries

Testing

  • make format
  • make build

Related

Split incremental sync from deletion reconciliation for series and books to make behavior explicit and maintainable.

Add local stale-entity cleanup for books, series, collections, and read lists by comparing local IDs with server IDs, including full-sync paths in SyncService.

Run deletion reconciliation on a scheduled interval (or force full sync), prefer unpaged ID fetch with paged fallback, and clean orphaned offline directories after stale book removal.

Improve sync progress behavior for large libraries by using staged progress ranges and incremental-progress estimation so the books phase no longer appears to jump abruptly.
@everpcpc everpcpc merged commit bdaa11c into main Feb 23, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/sync-reconcile-deletions branch February 23, 2026 11:00
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