Resolve Trunk Promotion Conflict

Nucleic-Session: 20A52F7E-A10D-4B59-B650-D3FD6BC3B46B
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-03 16:32:01 -07:00
co-authored by Nucleic
parent 2c634e7db6
commit 23baade658
@@ -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))
}