iOS/Gateway: harden pairing resolution and settings-driven capability refresh#22120
Merged
iOS/Gateway: harden pairing resolution and settings-driven capability refresh#22120
Conversation
Contributor
Additional Comments (2)
Consider adding the refresh callback: Prompt To Fix With AIThis is a comment left during a code review.
Path: apps/ios/Sources/Settings/SettingsTab.swift
Line: 276-279
Comment:
`cameraEnabled` changes affect capabilities (`currentCaps()` checks `camera.enabled` at GatewayConnectionController.swift:789-793) but don't trigger `refreshActiveGatewayRegistrationFromSettings()` like location changes do. Camera capability updates won't take effect until next reconnect.
Consider adding the refresh callback:
```suggestion
self.featureToggle(
"Allow Camera",
isOn: self.$cameraEnabled,
help: "Allows the gateway to request photos or short video clips while OpenClaw is foregrounded.") { _ in
self.gatewayController.refreshActiveGatewayRegistrationFromSettings()
}
```
How can I resolve this? If you propose a fix, please make it concise.
Add refresh after Prompt To Fix With AIThis is a comment left during a code review.
Path: apps/ios/Sources/Settings/SettingsTab.swift
Line: 251-256
Comment:
`voiceWakeEnabled` changes affect capabilities (`currentCaps()` checks `voiceWake.enabled` at GatewayConnectionController.swift:795-796) but don't trigger `refreshActiveGatewayRegistrationFromSettings()`. Voice wake capability updates won't take effect until next reconnect.
Add refresh after `setVoiceWakeEnabled`:
```suggestion
self.featureToggle(
"Voice Wake",
isOn: self.$voiceWakeEnabled,
help: "Enables wake-word activation to start a hands-free session.") { newValue in
self.appModel.setVoiceWakeEnabled(newValue)
self.gatewayController.refreshActiveGatewayRegistrationFromSettings()
}
```
How can I resolve this? If you propose a fix, please make it concise. |
41bbd41 to
55b8a93
Compare
Contributor
Author
MisterGuy420
pushed a commit
to MisterGuy420/openclaw-dev
that referenced
this pull request
Feb 20, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
rodrigogs
pushed a commit
to rodrigogs/openclaw
that referenced
this pull request
Feb 20, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
MisterGuy420
pushed a commit
to MisterGuy420/openclaw-dev
that referenced
this pull request
Feb 20, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
Hansen1018
added a commit
to Hansen1018/openclaw
that referenced
this pull request
Feb 21, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
vincentkoc
pushed a commit
that referenced
this pull request
Feb 21, 2026
… refresh (#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
dgarson
pushed a commit
to dgarson/clawdbot
that referenced
this pull request
Feb 21, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
mmyyfirstb
pushed a commit
to mmyyfirstb/openclaw
that referenced
this pull request
Feb 21, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
obviyus
pushed a commit
to guirguispierre/openclaw
that referenced
this pull request
Feb 22, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
mreedr
pushed a commit
to mreedr/openclaw-custom
that referenced
this pull request
Feb 24, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
… refresh (openclaw#22120) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 55b8a93 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nodes invokepairing-required error text with actionable hintFiles
src/shared/node-match.tssrc/shared/shared-misc.test.tssrc/agents/tools/nodes-tool.tsapps/ios/Sources/Gateway/GatewayConnectionController.swiftapps/ios/Sources/Settings/SettingsTab.swiftValidation
pnpm test -- src/shared/shared-misc.test.tsGreptile Summary
This PR hardens pairing resolution and settings-driven capability refresh in iOS gateway connections. The changes address three main areas:
resolveNodeIdFromCandidatesinsrc/shared/node-match.tsto prefer connected nodes when multiple nodes share the same display name (common during re-pairing/reinstall flows)nodes-tool.tsto extract pairing request IDs from error messages and provide actionable hints for users to approve pending pairing requestsrefreshActiveGatewayRegistrationFromSettings()method to rebuild gateway registration when location permissions change, ensuring capability updates take effect immediatelyThe implementation is well-tested with new unit tests covering both the connected node preference logic and ambiguous match scenarios. The Swift code follows proper guard patterns and MainActor execution for UI updates.
Confidence Score: 3/5
Last reviewed commit: 41bbd41