openclaw - ✅(Solved) Fix [Bug]: docs say 'openclaw devices approve --latest' auto-approves, but 2026.4.15 CLI is preview-only [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70600Fetched 2026-04-24 05:55:54
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
cross-referenced ×1

On OpenClaw 2026.4.15, openclaw devices approve --latest is preview-only and exits non-zero instead of approving the latest pending request, but the public docs still say it auto-approves when requestId is omitted or --latest is passed.

This creates a real operator trap during device pairing because the documented recovery flow says openclaw devices approve --latest, while the CLI actually requires a second explicit openclaw devices approve <requestId> command.

Root Cause

This showed up in a real device pairing flow. The user hit pairing required, I checked the latest request, and --latest looked like it should approve based on docs, but it only selected the request. Pairing only succeeded after running the explicit request-id approve command.

Fix Action

Fixed

PR fix notes

PR #70667: docs: fix stale devices approve --latest guidance in skill and Android README

Description (problem / solution / changelog)

Summary

Fixes #70600.

openclaw devices approve --latest has been preview-only since #64160 — it prints the pending request and exits without minting a token. Two docs surfaces still described it as an auto-approve action, creating an operator trap during device pairing.

  • skills/node-connect/SKILL.md: added inline comment clarifying --latest is preview-only and extended the bash block with the required explicit-ID step
  • apps/android/README.md: same fix in the integration test setup block; updated the quick-fix bullet to reference the two-step flow

docs/cli/devices.md was already accurate and is untouched.

Changes

  • skills/node-connect/SKILL.md — two-step approve flow with preview comment
  • apps/android/README.md — two-step flow in setup block + quick-fix bullet

Test plan

  • Grepped for remaining bare approve --latest in all .md files — none found outside docs/cli/devices.md (already correct)
  • pnpm check passes (docs-only change, no TS/logic touched)

AI-assisted

  • AI-assisted (Claude Code)
  • Lightly tested (docs-only — verified grep coverage)
  • Confirmed understanding of the change

Changed files

  • apps/android/README.md (modified, +3/-2)
  • skills/node-connect/SKILL.md (modified, +2/-1)

Code Example

openclaw devices approve --latest --json

---

openclaw devices approve <requestId> --json
RAW_BUFFERClick to expand / collapse

Summary

On OpenClaw 2026.4.15, openclaw devices approve --latest is preview-only and exits non-zero instead of approving the latest pending request, but the public docs still say it auto-approves when requestId is omitted or --latest is passed.

This creates a real operator trap during device pairing because the documented recovery flow says openclaw devices approve --latest, while the CLI actually requires a second explicit openclaw devices approve <requestId> command.

Version

  • OpenClaw CLI: 2026.4.15

What I observed

CLI help / implementation

openclaw devices approve --help says:

  • --latest Show the most recent pending request to approve explicitly

Bundled implementation also appears preview-only:

  • dist/devices-cli-NyHAbrN-.js:307
  • exits after returning selected + approveCommand when implicit selection / --latest is used

Changelog confirms this was intentional:

  • CHANGELOG.md:466
  • CLI/devices: make implicit openclaw devices approve selection preview-only and require approving the exact request ID, preventing latest-request races during device pairing. (#64160)

Docs still describe auto-approve

The current docs page says:

  • https://docs.openclaw.ai/zh-CN/cli/devices
  • "If requestId is omitted, OpenClaw will automatically approve the most recent pending request."
  • and lists openclaw devices approve --latest

Additional stale guidance in bundled skill docs

Bundled skill docs still recommend:

  • skills/node-connect/SKILL.md:107
  • openclaw devices approve --latest

Repro

  1. Create a pending device pairing request
  2. Run:
    openclaw devices approve --latest --json
  3. Observe output similar to:
    • selected
    • approveCommand
    • process exits with code 1
  4. Then run:
    openclaw devices approve <requestId> --json
  5. Observe that the explicit request ID command actually approves the device

Expected

One of these should be made consistent:

  1. If the intended behavior is preview-only, update:

    • public docs
    • bundled skill docs / pairing guidance
    • any recovery text that suggests approve --latest is sufficient
  2. If the intended behavior is auto-approve, restore that behavior in CLI

Why this matters

This showed up in a real device pairing flow. The user hit pairing required, I checked the latest request, and --latest looked like it should approve based on docs, but it only selected the request. Pairing only succeeded after running the explicit request-id approve command.

extent analysis

TL;DR

To fix the issue, update the public docs, bundled skill docs, and recovery text to reflect that openclaw devices approve --latest is preview-only and requires a second explicit approval command with the request ID.

Guidance

  • Verify the current behavior by running openclaw devices approve --latest --json and observing the output, which should indicate that the command only selects the latest request but does not approve it.
  • Update the public docs at https://docs.openclaw.ai/zh-CN/cli/devices to remove the statement that openclaw devices approve --latest auto-approves the most recent pending request.
  • Review and update the bundled skill docs, such as skills/node-connect/SKILL.md, to reflect the correct usage of openclaw devices approve --latest.
  • Consider adding a note to the recovery flow documentation to clarify that a second explicit approval command is required after selecting the latest request with --latest.

Example

No code snippet is necessary for this issue, as it is primarily a documentation and usage problem.

Notes

The fix requires updating documentation and guidance to match the current behavior of the openclaw devices approve --latest command, which is preview-only. This change will help prevent operator traps during device pairing.

Recommendation

Apply the workaround by updating the documentation and using the explicit approval command with the request ID, as this is the intended behavior according to the changelog and implementation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: docs say 'openclaw devices approve --latest' auto-approves, but 2026.4.15 CLI is preview-only [1 pull requests, 1 participants]