Skip to content

fix: ignore 409 conflicts in progress sync#591

Merged
everpcpc merged 1 commit intomainfrom
codex/ignore-progress-409-conflicts
Mar 2, 2026
Merged

fix: ignore 409 conflicts in progress sync#591
everpcpc merged 1 commit intomainfrom
codex/ignore-progress-409-conflicts

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

@everpcpc everpcpc commented Mar 2, 2026

Summary

  • Ignore HTTP 409 conflict responses during pending progress sync and remove the queued item instead of treating it as a failure.
  • Ignore HTTP 409 conflict responses during live reader progress dispatch for both page and EPUB progression updates.
  • Extract APIError.statusCode and APIError.isConflict to centralize conflict classification and remove duplicated service-level helpers.

Testing

  • make format
  • make build-macos

Ignore HTTP 409 conflicts for both queued and live reading progress sync flows.

Refactor conflict detection into APIError.isConflict (with statusCode) to avoid duplicated logic across services.
@everpcpc everpcpc merged commit 2302c8f into main Mar 2, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/ignore-progress-409-conflicts branch March 2, 2026 03:38
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