Commit 4649508
fix(cli): parse JSON error strings to avoid double-encoding in --json mode
When an API error message is itself a JSON string, output_error now
parses it so the error field contains a proper object instead of a
stringified JSON string. This lets agents parse errors with a single
json.loads() call.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent edacf90 commit 4649508
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
| |||
0 commit comments