From 0578f5bcc0e5f54001315158d50a83996f9dbb23 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 13:51:05 -0700 Subject: [PATCH] Investigate Live Activity Session Load Nucleic-Session: 044A9B93-AB31-4B6B-9A27-3631261269B1 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index be50f16..419fdde 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -558,6 +558,11 @@ final class RemoteStore: ObservableObject { var cb = HostConnection.Callbacks() cb.didUpdate = { [weak self] in guard let self else { return } + // Complete a session opened before its owning Mac was live — a Live Activity / + // notification cold-launch deep link opens the detail while the app is still dialing, so + // `open()` couldn't bind it to a connection that didn't exist yet. Runs before the merge + // so the aggregate picks up the freshly-bound host's connectivity/scope this pass. + self.bindOpenSessionIfNeeded() // Any host's change re-merges the aggregate the flat state binds to (mesh P3). self.rebuildAggregate() self.refreshAggregate()