Session Cache Implementation

Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 22:31:01 -07:00
co-authored by Nucleic
parent 292fd8e7a8
commit c91a3e6aa4
@@ -303,7 +303,11 @@ final class RemoteStore: ObservableObject {
pathMonitor.onChange = { [weak self] in self?.handlePathChange() } pathMonitor.onChange = { [weak self] in self?.handlePathChange() }
pathMonitor.start() pathMonitor.start()
discovery.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. /// A network-path change: tell each host connection to re-plan its transport now.