From c91a3e6aa4ecd08b263b3c87c6091d67acf7d7b8 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 22:31:01 -0700 Subject: [PATCH] Session Cache Implementation Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index d141863..8aab27a 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -303,7 +303,11 @@ final class RemoteStore: ObservableObject { pathMonitor.onChange = { [weak self] in self?.handlePathChange() } pathMonitor.start() discovery.start() - if isPaired { reconnect() } + if isPaired { + // Show the saved chat history immediately, before any host connects. + if sessions.isEmpty { sessions = cachedSummaries } + reconnect() + } } /// A network-path change: tell each host connection to re-plan its transport now.