Session Cache Implementation
Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -837,6 +837,9 @@ final class RemoteStore: ObservableObject {
|
|||||||
diffLoading = false
|
diffLoading = false
|
||||||
markOpened(sessionID)
|
markOpened(sessionID)
|
||||||
if demoMode { seedDemoTranscript(sessionID); return }
|
if demoMode { seedDemoTranscript(sessionID); return }
|
||||||
|
// Seed from the on-device cache so the transcript shows instantly — including fully offline,
|
||||||
|
// where the subscribe below is a no-op. Live events merge on top by seq (dedup).
|
||||||
|
loadCachedTranscript(sessionID)
|
||||||
// Tell the owning connection so it forwards the snapshot/events (and dedupes them), re-derive
|
// Tell the owning connection so it forwards the snapshot/events (and dedupes them), re-derive
|
||||||
// the context host (capabilities/scope/catalog/connectivity now follow it), then subscribe.
|
// the context host (capabilities/scope/catalog/connectivity now follow it), then subscribe.
|
||||||
connection(owningSession: sessionID)?.openSessionID = sessionID
|
connection(owningSession: sessionID)?.openSessionID = sessionID
|
||||||
|
|||||||
Reference in New Issue
Block a user