fix: improve provider issue formatting

This commit is contained in:
Peter Steinberger
2026-01-11 03:43:44 +01:00
parent c7caa9a87d
commit 4ce2e73521
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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);
}
}