[BUG]
Resolved 💬 5 comments Opened Sep 3, 2025 by eyston Closed Jan 7, 2026
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: claude code / mac os
- Claude CLI version: 1.0.102 (Claude Code)
- Operating System: macOS 15.6.1
- Terminal: Terminal App
Bug Description
ripgrep can fail with a buffer overflow and return 0 results when results in fact exist:
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit
(node:events:508:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode
(node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead
(node:internal/stream_base_commons:189:23)","timestamp":"2025-09-03T20:09:02.070Z"},{"error":"Error: Command failed:
/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg --hidden -l <term here> ...
Steps to Reproduce
- Ask claude code to search for a term w/ a lot of results
- claude code will return 0 results
Expected Behavior
I would expect an error rather than a false report of 0 matches.
Actual Behavior
It confidently returns 0 matches.
Additional Context
I can't include full error due to work context.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗