-
-
Notifications
You must be signed in to change notification settings - Fork 52.9k
Closed
Closed
Copy link
Description
Summary
openclaw update status --json prints Doctor warning blocks before the JSON payload, so downstream JSON parsers (e.g. jq) fail.
Steps to reproduce
- Use a config/state where Doctor emits any warning (example in my case: repeated
channels.whatsapp.enabledwarning). - Run:
openclaw update status --json | jq '.availability.available'Expected behavior
--json output should be valid JSON only (stdout), so piping to jq always works.
Actual behavior
Doctor text/banner is emitted before JSON, causing parse errors like:
jq: parse error: Invalid numeric literal at line 2, column 0
OpenClaw version
2026.2.22-2
Operating system
macOS 26.3 (arm64)
Install method
pnpm/global
Impact
Breaks automation and health checks that rely on --json (e.g. healthd checks for update availability).
Notes
Related-ish feature request: #9777 (--quiet to suppress Doctor warnings), but this looks like a bug because --json should be machine-readable regardless of warning state.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels