Claude Code is simultaneously the most useful and lowest quality app I use. It's filled with little errors and annoyances but succeeds despite them. Not to mention the official documentation is entirely vibe-copywritten and any quality control is cursory at best. It forcibly installs itself to ~/.local/bin. Do you already have a file at that location? Not anymore. When typing into the prompt, EACH KEYSTROKE results i…
Are you sure about the one char thing? I’d expect a huge flash if that was the case.
Large integer precision error in Bash command output rendering
31–40 of 41 posts
Re: Large integer precision error in Bash command output rendering
#32Earlier quoted context omitted.
Ha, interesting. Using Claude Code in Zed, I never encountered any of these defects. I just open a Claude Code Thread, tell it what I want, bypass permissions (my remote is a container), and let it work. And it works wonderfully! I guess the “integrated” part of IDE is pretty important.
Honestly, most of the problems I have with Claude Code are frontend problems, so this wouldn't surprise me. I wonder if it's possible to make an alternative CLI frontend to it.
Re: Large integer precision error in Bash command output rendering
#33Claude Code is simultaneously the most useful and lowest quality app I use. It's filled with little errors and annoyances but succeeds despite them. Not to mention the official documentation is entirely vibe-copywritten and any quality control is cursory at best. It forcibly installs itself to ~/.local/bin. Do you already have a file at that location? Not anymore. When typing into the prompt, EACH KEYSTROKE results i…
Re: Large integer precision error in Bash command output rendering
#34Re: Large integer precision error in Bash command output rendering
#35Smells like floating point. Python prompt: >>> int(float('348555896224571969')) 348555896224571968 It just exceeds the mantissa bits of doubles: >>> math.log2(34855589622457196) 54.952239550875795 JavaScript (in)famously stores all numbers as floating point resulting in silent errors also with user perceived integers, so this might be an indication that Claude Code number handling uses JS native numbers for this.
Re: Large integer precision error in Bash command output rendering
#36Claude Code is simultaneously the most useful and lowest quality app I use. It's filled with little errors and annoyances but succeeds despite them. Not to mention the official documentation is entirely vibe-copywritten and any quality control is cursory at best. It forcibly installs itself to ~/.local/bin. Do you already have a file at that location? Not anymore. When typing into the prompt, EACH KEYSTROKE results i…
I'm working on a fix for the terminal UI. https://www.youtube.com/watch?v=OGGVdPZTc8E&t=2s
Re: Large integer precision error in Bash command output rendering
#37Claude Code is simultaneously the most useful and lowest quality app I use. It's filled with little errors and annoyances but succeeds despite them. Not to mention the official documentation is entirely vibe-copywritten and any quality control is cursory at best. It forcibly installs itself to ~/.local/bin. Do you already have a file at that location? Not anymore. When typing into the prompt, EACH KEYSTROKE results i…
Are you sure about the one char thing? I’d expect a huge flash if that was the case.
Re: Large integer precision error in Bash command output rendering
#38There are 2 hard problems in computer science. Cache invalidation, naming things, and off by 1 errors.
Re: Large integer precision error in Bash command output rendering
#39We merged a fix for this that'll go out in the ~next release. 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.
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 most visible problem.
Re: Large integer precision error in Bash command output rendering
#40Typing "348555896224571969" into your browser's dev console will also return 348555896224571970
I don't think this is a bug specifically with Claude Code, rather it's due to Claude Code having javascript in the backend. The interesting thing to me is that the numeric string was interpreted as an integer.
I have a VERY hard time believing that they only use JSON serialization between the model and the TUI. If they're seriealizing JSON between agents, tools, or other components, then this problem is going to continue to persist for a very long time.