Large integer precision error in Bash command output rendering · Issue #11506 · anthropics/claude-code · GitHub

✨ Read this awesome post from Hacker News 📖

📂 Category:

📌 Key idea:

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

  1. Run the following command in Claude Code:
echo '348555896224571969'

Or with jq:

echo 'Share your opinion below!' | 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

Image

🔥 Tell us your thoughts in comments!

#️⃣ #Large #integer #precision #error #Bash #command #output #rendering #Issue #anthropicsclaudecode #GitHub

🕒 Posted on 1763019850

By

Leave a Reply

Your email address will not be published. Required fields are marked *