-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: OpenClaw CLI should handle node lacks exec approvals capability gracefully #97578
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangsclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangsclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Bug type
Crash (process/app exits or hangs)
Beta release blocker
No
Summary
openclaw approvals get --node <node-id> --jsoncurrently fails with a raw JavaScript TypeError when the selected node does not advertise the exec approvals capability.Observed output:
The connected Windows node is otherwise usable and advertises
system.run,system.run.prepare, andsystem.which, but it does not advertisesystem.execApprovals.getorsystem.execApprovals.set. In that state, OpenClaw should return a structured, actionable unsupported-capability error instead of exposing an internal TypeError.Steps to reproduce
system.run,system.run.prepare, andsystem.which, but does not advertisesystem.execApprovals.getorsystem.execApprovals.set.Expected behavior
The CLI should fail gracefully with an actionable error, for example:
The error should be structured for
--jsonoutput and should not depend on internal socket/file/snapshot fields being present.Actual behavior
The CLI returns:
This hides the real operator problem: the selected node lacks the exec approvals capability.
OpenClaw version
2026.6.10
Operating system
Dockerized OpenClaw Gateway/CLI on Linux under WSL2, with a paired Windows node host. Observed node details:
text displayName: Windows Node platform: windows version: 0.6.3 clientId: node-hostInstall method
Docker Compose using the local OpenClaw image, plus a paired Windows node host.
Model
openai/gpt-5.5
Provider / routing chain
OpenClaw CLI -> OpenClaw Gateway -> paired Windows node host.
Additional provider/model setup details
No response
Logs
Screenshots, recordings, and evidence
No response
Impact and severity
Medium.
This blocks operators from diagnosing and repairing node exec policy denials through the CLI when the node lacks approvals-management support. It also turns a capability mismatch into a confusing internal TypeError, which makes the remediation unclear.
Additional information
This issue is about graceful error handling and capability detection. It does not require enabling remote approvals management for every node implementation.
A reasonable fix would be to detect missing
system.execApprovals.get/setbefore invoking the node approval path, then return a structured unsupported-capability error that tells the operator to update the node host or edit the node-local approvals file directly.