diff --git a/CHANGELOG.md b/CHANGELOG.md index 3feffb058..6a56b8629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixes - CLI/Status: make the “More” footer shorter and easier to scan (newlines + context-aware suggestions). - Docs/FAQ: make `clawdbot status` the first diagnostic step (and point to `status --all` for pasteable reports). +- CLI/Status: format non-JSON-serializable provider issue values more predictably. ## 2026.1.11-7 diff --git a/src/infra/providers-status-issues.ts b/src/infra/providers-status-issues.ts index fdaa331c7..4f1cd13af 100644 --- a/src/infra/providers-status-issues.ts +++ b/src/infra/providers-status-issues.ts @@ -67,7 +67,12 @@ function formatValue(value: unknown): string | undefined { try { return JSON.stringify(value); } catch { - return String(value); + if (typeof value === "bigint") return value.toString(); + if (typeof value === "number" || typeof value === "boolean") { + return value.toString(); + } + if (typeof value === "symbol") return value.toString(); + return Object.prototype.toString.call(value); } }