From 23baade658b8802be230ae855b24338b7ecca0f5 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Fri, 3 Jul 2026 16:32:01 -0700 Subject: [PATCH] Resolve Trunk Promotion Conflict Nucleic-Session: 20A52F7E-A10D-4B59-B650-D3FD6BC3B46B Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 0c2a579..20ab612 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -706,10 +706,12 @@ final class RemoteStore: ObservableObject { } /// Map an `NWConnection` failure to a connectivity state the pairing/onboarding UI can act on. - /// Only meaningful while we're still establishing the link; once `.connected`, a drop is the - /// normal `.closed` → reconnect path's job. + /// Only meaningful while we're still establishing the link; once connected, a drop is the + /// normal `.closed` → reconnect path's job. And only when the connect chain has nothing + /// left to try — a failed LAN probe about to fall back to the tailnet is routine, not news. private func handleTransportFailure(_ error: String) { - guard connectivity != .connected else { return } + guard !connectivity.isLive else { return } + guard connectPlan?.remaining.isEmpty != false else { return } connectivity = .failed(Self.friendlyTransportError(error)) }