iOS: harden operator reconnect/pairing identity

This commit is contained in:
Mariano Belinky 2026-02-18 13:14:59 +00:00 committed by mbelinky
parent 89b627f274
commit 491f0282a5
1 changed files with 6 additions and 1 deletions

View File

@ -584,8 +584,11 @@ final class NodeAppModel {
onFailure: { [weak self] _ in
guard let self else { return }
await self.operatorGateway.disconnect()
await self.nodeGateway.disconnect()
await MainActor.run {
self.operatorConnected = false
self.gatewayConnected = false
self.gatewayStatusText = "Reconnecting…"
self.talkMode.updateGatewayConnected(false)
}
})
@ -1928,7 +1931,9 @@ private extension NodeAppModel {
clientId: clientId,
clientMode: "ui",
clientDisplayName: displayName,
includeDeviceIdentity: true)
// Operator traffic should authenticate via shared gateway auth only.
// Including device identity here can trigger duplicate pairing flows.
includeDeviceIdentity: false)
}
func legacyClientIdFallback(currentClientId: String, error: Error) -> String? {