Commit ec0ea49
fix(theme): preserve large integer precision in response panel (#1208)
The response pretty-printer round-tripped the body through
JSON.parse/JSON.stringify, which silently truncated integers beyond
Number.MAX_SAFE_INTEGER (e.g. 19-digit IDs like 1945044589271781376
became 1945044589271781400).
Replace the round trip with a small string-level pretty-printer that
re-indents structural tokens only, so number literals pass through
verbatim. JSON.parse is kept solely as a validity check so malformed
bodies still fall through to the XML/raw branch.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6647aa0 commit ec0ea49
1 file changed
Lines changed: 53 additions & 1 deletion
Lines changed: 53 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
25 | 76 | | |
26 | 77 | | |
27 | 78 | | |
| |||
70 | 121 | | |
71 | 122 | | |
72 | 123 | | |
73 | | - | |
| 124 | + | |
| 125 | + | |
74 | 126 | | |
75 | 127 | | |
76 | 128 | | |
| |||
0 commit comments