Repository navigation
Description
Durable on-disk session caching (Room on Android, SwiftData on iOS) for stale-while-revalidate: instant home session list and instant Session Chat reopen when server is slow or unreachable.
Architecture (locked): deep SessionCache hot path (seedSessions / rememberSessions / openMessages + handle) for Live Store and MessageSync; internal SessionCacheStore (load / commit / retain / evict / report) for Room / SwiftData / in-memory only. Fresh branch from main — do not rebase ivanfenenko/ope-27-session-cache.
Remaining:
- Implement
SessionCache+SessionMessageCacheHandle+ versioned JSON codec on both platforms - Room database / entities /
RoomSessionCacheStore+ Hilt + unit tests - SwiftData models /
SwiftDataSessionCacheStore+ AppContainer wiring - Wire
SessionLiveStoreandMessageSyncfor disk-first seed + remember/note + flush; expose freshness (isFromCache) - Integrate purge on worktree removal and
clearAllin Clear All Data - Settings Session Cache section (size + Clear Session Cache confirmation)
- Gate composer + server mutations when
connectionStatus != Live(reuse existing connection chrome; no cache-only banner) - Disk-first home cold start (skip Probing/Loading spinner when worktrees exist)
- Cache-hit Session Chat: structure/plain-first paint + blank Loading chrome (no spinner wait for Final)
- Manual offline cold-start verification
Docs: docs/features/session-cache/
ADR: docs/adr/0006-session-cache-stale-while-revalidate.md
Branch: feature/ope-27-session-cache
Imported from Linear OPE-27. Linear status: Done. Priority: High. Created 2026-06-28. Completed 2026-08-06.
Related: OPE-11, OPE-13, OPE-10, OPE-9.
Activity