From b803313477d9a9eb59ecd852a94d3f9467927fe5 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 14:03:19 -0700 Subject: [PATCH] Launch Activity Logic Nucleic-Session: EBB24271-3AB2-4CBD-A47A-59FC73500371 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 16f7556..62f4a3d 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -230,6 +230,12 @@ final class RemoteStore: ObservableObject { var canControl: Bool { grantedScope >= .control } + /// The process-wide store. The SwiftUI `App` binds its `@StateObject` to this instance so the + /// UI and any headless entry point share one store — in particular the background push handler + /// (`PushAppDelegate`), which on a silent launch has no mounted scene (`onAppear` never fires) + /// and so must reach the store directly to bring it online and adopt a push-started Live Activity. + static let shared = RemoteStore() + private let identity = IdentityStore.loadOrCreateIdentity() let discovery = LANDiscovery() /// Proactive network-path awareness (shared across every host connection): flips transports the