Files
collaed 009367df7a KOSync: queue failed progress updates for retry on reconnect (#15324)
When the sync server is unreachable (offline reading, intermittent WiFi,
server down), progress updates are now queued locally instead of being
silently dropped. Queued items are drained on the next successful network
connection.

Queue behavior:
- One entry per document per day (preserves daily reading statistics)
- Entries expire after 4 weeks
- Hard cap of 200 entries as safety net
- Auth failures (401) are not queued (won't resolve by retrying)
- Queue is cleared on logout

Integration points:
- updateProgress: queues on pcall failure or non-auth callback failure
- _onNetworkConnected: drains queue before pulling remote progress
- _onCloseDocument: queues immediately if offline instead of blocking
  with goOnlineToRun (avoids WiFi prompts on document close)

Fixes #9267, fixes #10678, fixes #11105
2026-07-08 19:27:10 +02:00
..