Large integer precision error in Bash command output rendering
Status Fixed / completed
Maintainer reply ✓ Yes — amorriscode
Activity 7 comments · opened Nov 12, 2025 · closed Nov 13, 2025
💡 Likely answer: A maintainer (amorriscode, contributor)
responded on this thread — see the highlighted reply below.
Claude Code incorrectly displays large integers in bash command output, showing a different value than what was actually output by the command.
Steps to Reproduce
- Run the following command in Claude Code:
echo '348555896224571969'
Or with jq:
echo '{"value": 348555896224571969}' | jq -c .value
Expected Behavior
Claude Code should display: 348555896224571969
Actual Behavior
Claude Code displays: 348555896224571970 (off by 1)
Verification
Running the same command in a native terminal correctly outputs: 348555896224571969
Environment
- Claude Code version: v2.0.37
- Model: Sonnet 4.5 (Claude Max)
- Platform: macOS (Darwin 24.3.0)
Screenshots
<img width="1429" height="339" alt="Image" src="https://github.com/user-attachments/assets/20f67c06-ddb6-4431-bfe6-b047043aab0a" />
7 Comments
<img width="852" height="1010" alt="Image" src="https://github.com/user-attachments/assets/812cc2a9-c0e8-452e-966f-9b09971ac17e" />
I can confirm this issue also occurs on Windows.
Environment:
This suggests the issue is platform-independent and likely related to how Claude Code processes numeric values in bash output.
<img width="912" height="370" alt="Image" src="https://github.com/user-attachments/assets/2e596fea-3684-4611-a6e4-665d33932e63" />
Variant
I asked Claude Code to inspect ~/.local/bin/claude to see if it could figure this out:
I'd raise a PR to fix this but it's closed source.
Thanks for the report! A fix will go out in the ~next release or so. 🫡
Also, for clarification, this bug was only impacting the display of numbers in the TUI, not what the model sees. The model sees raw results from bash.
@amorriscode This bug report was about the symptom that affects the display of numbers in the TUI, but the real bug/design flaw is using
jqor JSON as a transport mechanism between components, agents, or tools. JSON's number range is famously poor and is even architecture-dependent. So if you usejqor JSON to connect components or tools, you will have this same problem silently occurring elsewhere without visibility in the UI.This is a bigger deal than it seems like! A confidence-inducing fix would include a blog post describing a top-to-bottom audit of jq/JSON used as a transport layer between tools and components. Not just a patch to the UI as the most visible problem.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.