Skip to content

fix: accelerate reader progress sync and skip incognito sync#515

Merged
everpcpc merged 1 commit intomainfrom
codex/progress-sync-timeout-incognito
Feb 19, 2026
Merged

fix: accelerate reader progress sync and skip incognito sync#515
everpcpc merged 1 commit intomainfrom
codex/progress-sync-timeout-incognito

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

@everpcpc everpcpc commented Feb 19, 2026

Summary

  • reduce progress API timeout to 1s for reader/book progress updates
  • set dashboard wait-for-progress timeout to 5s before fallback refresh
  • run progress send tasks as TaskPriority.userInitiated and simplify timeout race logic
  • skip visited/progress sync paths when reader is in incognito mode
  • pass incognito flag during reader view model construction

Files

  • KMReader/Features/Book/Services/BookService.swift
  • KMReader/Features/Dashboard/Views/DashboardView.swift
  • KMReader/Features/Reader/Services/ReaderProgressDispatchService.swift
  • KMReader/Features/Reader/ViewModels/ReaderViewModel.swift
  • KMReader/Features/Reader/Views/DivinaReaderView.swift
  • KMReader/Features/Reader/Views/ReaderPresentationManager.swift

Validation

  • not run in this step (commit + PR only)

- reduce progress request timeout to 1s for book and reader progress APIs\n- set dashboard wait-for-progress timeout to 5s before fallback refresh\n- run reader progress dispatch tasks as userInitiated and simplify timeout race handling\n- prevent visited/progress related sync when incognito mode is enabled\n- thread incognito flag through reader view model initialization
@everpcpc everpcpc merged commit a1aa374 into main Feb 19, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/progress-sync-timeout-incognito branch February 19, 2026 05:36
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