fix(cli): keep route-first json stdout clean

This commit is contained in:
Peter Steinberger
2026-04-27 20:51:19 +01:00
parent f0000ab72d
commit f56897259e
4 changed files with 22 additions and 3 deletions

View File

@@ -111,6 +111,10 @@ Options:
- `--probe-max-tokens <n>`
- `--agent <id>` (configured agent id; overrides `OPENCLAW_AGENT_DIR`/`PI_CODING_AGENT_DIR`)
`--json` keeps stdout reserved for the JSON payload. Auth-profile, provider,
and startup diagnostics are routed to stderr so scripts can pipe stdout directly
into tools such as `jq`.
Probe status buckets:
- `ok`