You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e13a6b5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mobile): offline cache and outbox keep order and stay consistent
Review found races and dropped writes in the offline sync change.
- Disconnect saves the committed projection and cursor pair, so a cold
restart never resumes past events the cache does not hold.
- Streaming updates are no longer queued while a run is active, and the
persist guard is gone, so Stop's repair of an expanded thread reaches
the cache. The repair starts from the newest snapshot handed to it.
- Queued messages sort by enqueue ordinal or, without one, creation time.
Load no longer rewrites legacy records, so a partial load or failed
write cannot reorder sends after a restart.
- One write lock serializes SQLite writers; exclusive transactions open
their own connection with no busy handler.
- Pull request pruning deletes cache metadata explicitly, since the
transaction connection does not enforce the cascade.
- Prefetch counts a thread as refreshed only when its projection is at
least as new as the shell, not when a retained snapshot says live.
- Pending rows relabel on connection changes; error and unsupported
states ask to reconnect instead of promising to load.
- The composer send guard no longer uses try/finally, which the React
Compiler skipped.
Claude Opus 5.5 via Claude Code.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments