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
Desktop Conversations: clarify backend authority while preserving cache-first UX #8197
Desktop Conversations currently gets fast first paint from local storage, but the ownership model is ambiguous:
UI can render local cache, server list results, or local transcript segments depending on the path.
Local rows can block server updates through timestamp heuristics.
Mutations are sometimes applied optimistically to UI/local storage, then later reloaded from API.
Detail completeness is implicit: the app does not know whether cached data is fresh, partial, stale, or server-authoritative.
This makes the feature feel fast when everything lines up, but fragile when refreshes, mutations, account switches, processing updates, or detail loads race each other.
Expected outcome
Keep the low-latency UX while making backend authority explicit.
Recommended shape:
Local cache remains the instant first paint.
A single desktop Conversations repository/store owns list/detail state and reconciliation.
Cache entries carry explicit freshness/completeness metadata, e.g. source=cache|server, fetched_at, detail_completeness, and server version/update timestamp.
Backend exposes a real updated_at or monotonic version for conversations.
Local mutations are represented as optimistic overlays or a pending-mutation journal, not by treating local row timestamps as stronger than backend state forever.
UI can render cached data immediately, then quietly reconcile when server truth arrives.
Acceptance criteria
Desktop Conversations has one owner for list/detail loading, refresh, mutation, and local-cache reconciliation.
Local cache remains available for instant render and offline-ish detail viewing.
Server responses include enough version/freshness information to merge without using finished_at/started_at/created_at as update proxies.
UI can distinguish fresh server data from stale/partial cache data.
Mutation flows such as title/star/folder updates do not permanently mask later backend processing updates.
Add tests for cache-first render followed by server reconciliation, including stale local title/folder/star state and backend-updated summary/status.
Activity
fix: reconcile conversations with server authority (#8344)
Fix macOS session reconciliation recovery (#9103)
fix(desktop): make conversation cache reconciliation authoritative (#…
Fix desktop conversation session and mutation races (#9371)