fix(kiloclaw): approve gateway-client devices locally#2943
Draft
fix(kiloclaw): approve gateway-client devices locally#2943
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by gpt-5.5-2026-04-23 · 1,113,219 tokens |
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
openclaw devices approve, avoiding the gateway-RPC deadlock when gateway-client is blocked byscope-upgrade.openclaw doctoron existing configs.Verification
The local helper was smoke-tested against a temporary OpenClaw 2026.4.15 state directory to confirm it approves a gateway-client operator request and writes full approved/token scopes.
Visual Changes
N/A
Reviewer Notes
The helper intentionally locates OpenClaw's hashed
device-pairing-*.jsdist chunk and verifies it exports a function namedapproveDevicePairing; the Docker build includes a smoke check so OpenClaw packaging drift fails image build instead of silently disabling recovery. The doctor timeout is fail-open only for existing configs; first-boot onboard behavior remains fatal.