From f931f54b0ed5bce21d2acbf97d3fec1e25dcb1b5 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 22:31:51 -0700 Subject: [PATCH] Session Cache Implementation Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 3578223..a3618bf 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -983,6 +983,8 @@ final class RemoteStore: ObservableObject { connection(owningSession: target)?.openSessionID = nil openSessionID = nil openSessionHostID = nil + // Persist the final transcript before clearing it, so it's warm for the next open / offline. + flushOpenTranscript(target, openEvents) openEvents = [] openApprovals = [] openDiff = nil