diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d2f8dcbe..9c781c482 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,11 @@ ### Fixes - CLI/Status: replace the footer with a 3-line “Next steps” recommendation (share/debug/probe), and gate probes behind gateway reachability. +## 2026.1.11-8 + +### Fixes +- CLI/Gateway: clarify that `clawdbot gateway status` reports RPC health (connect + RPC) and shows RPC failures separately from connect failures. + ## 2026.1.11-5 ### New Features and Changes diff --git a/package.json b/package.json index 615554bb0..ee0668be7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clawdbot", - "version": "2026.1.11-7", + "version": "2026.1.11-8", "description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent", "type": "module", "main": "dist/index.js", diff --git a/src/commands/gateway-status.ts b/src/commands/gateway-status.ts index 592ee0e53..daa856bf8 100644 --- a/src/commands/gateway-status.ts +++ b/src/commands/gateway-status.ts @@ -324,9 +324,18 @@ function renderProbeSummaryLine(probe: GatewayProbeResult, rich: boolean) { typeof probe.connectLatencyMs === "number" ? `${probe.connectLatencyMs}ms` : "unknown"; - return `${colorize(rich, theme.success, "Connect: ok")} (${latency})`; + return `${colorize(rich, theme.success, "Connect: ok")} (${latency}) · ${colorize(rich, theme.success, "RPC: ok")}`; } + const detail = probe.error ? ` - ${probe.error}` : ""; + if (probe.connectLatencyMs != null) { + const latency = + typeof probe.connectLatencyMs === "number" + ? `${probe.connectLatencyMs}ms` + : "unknown"; + return `${colorize(rich, theme.success, "Connect: ok")} (${latency}) · ${colorize(rich, theme.error, "RPC: failed")}${detail}`; + } + return `${colorize(rich, theme.error, "Connect: failed")}${detail}`; } diff --git a/src/docker-setup.test.ts b/src/docker-setup.test.ts index 25a34c2f4..f0644857b 100644 --- a/src/docker-setup.test.ts +++ b/src/docker-setup.test.ts @@ -1,5 +1,5 @@ import { spawnSync } from "node:child_process"; -import { readFile, writeFile, mkdir, mkdtemp } from "node:fs/promises"; +import { mkdir, mkdtemp, readFile, writeFile } from "node:fs/promises"; import { tmpdir } from "node:os"; import { join, resolve } from "node:path"; import { fileURLToPath } from "node:url";