Gateway/CLI: add paired-device remove and clear flows#20057
Merged
Conversation
df53236 to
26523f8
Compare
Contributor
Author
anschmieg
pushed a commit
to anschmieg/openclaw
that referenced
this pull request
Feb 19, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 26523f8 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
HenryChenV
pushed a commit
to HenryChenV/openclaw
that referenced
this pull request
Feb 20, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 26523f8 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
device.pair.removeto delete stale paired device rowsopenclaw devices remove <deviceId>openclaw devices clear --yes [--pending]Testing
Greptile Summary
Adds a
device.pair.removegateway method and two CLI commands (openclaw devices remove <deviceId>andopenclaw devices clear --yes [--pending]) for managing paired device entries. The change spans the full vertical: Typebox schema + type, AJV validator, protocol schema registry, method allowlist, PAIRING_METHODS authorization set, server handler, infra layer (removePairedDevice), CLI wiring, and tests for both infra and CLI layers.removePairedDeviceinfra function deletes a device from the paired-devices state file under lock, consistent with existingrejectDevicePairingpatterndevice.pair.removeserver handler validates params, calls infra, returns the removed entry (or error for unknown deviceId)removesubcommand sends a single RPC call;clearlists all entries then sequentially removes paired devices (and optionally rejects pending requests)operator.pairingscope viaPAIRING_METHODS--yesguard, and clear with--pendingflagConfidence Score: 5/5
Last reviewed commit: df53236