From fc1d3a325691c3d1cd0c85433343075d595d9c6a Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 20:05:52 -0700 Subject: [PATCH] Live Activity Launch Consistency Nucleic-Session: 9D2EE9AB-2E44-485B-A196-54D250F9D89B Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index e896ca4..1327198 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -414,6 +414,10 @@ final class RemoteStore: ObservableObject { /// state until the app next runs. func handleLiveActivityAdoptWake(completion: @escaping () -> Void) { guard !demoMode, isPaired else { completion(); return } + // A silent adopt wake means we're background (possibly cold-launched with no scene, where + // `isForeground`'s default would otherwise read stale-true) — record that so the reconnect + // below reports background and the host keeps owning the glance via push-to-start (§5.3). + setForegroundState(false) setupLiveActivityBridge() // starts the push-to-start + adoption observers if not already startNetworkingIfNeeded() #if canImport(UIKit)