mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 15:51:43 +00:00
iOS: stabilize pairing/reconnect loops (#20056)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: b01a482a17
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
This commit is contained in:
@@ -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? {
|
||||
|
||||
Reference in New Issue
Block a user