fix: improve provider issue formatting
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user