Tab path autocomplete silently fails with too many files in the project

Resolved 💬 6 comments Opened May 30, 2025 by yar Closed Aug 22, 2025

Bug Description
Tab path autocompletion becomes unavailable when ripgrep search output exceeds a certain length, and there is no error or warning message.

See ERR_CHILD_PROCESS_STDIO_MAXBUFFER errors in the json log below.

I was able to stop the problem from happening by adding .rgignore rules, excluding numerous static image files from ripgrep search.

I only understood the origin of the problem when I saw this error log attached automatically to the Github issue draft, and also the log of my other issue 1444. (By the way, how can one access similar error logs directly, without opening an issue?)

It is perfectly understandable to have a limit to the number of searchable files in the project, but the user should see a helpful warning instead of proceeding unknowingly and experiencing a degraded Claude Code intelligence.

Environment Info

  • Platform: macos
  • Terminal: iTerm.app
  • Version: 1.0.7
  • Feedback ID: 6d4c5bd3-4665-4f98-8335-512adb80887e

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at BZ (file:///Users/yar/.nvm/versions/node/v24.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:638:3921)\n    at file:///Users/yar/.nvm/versions/node/v24.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:6930\n    at Q (file:///Users/yar/.nvm/versions/node/v24.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n    at fl (file:///Users/yar/.nvm/versions/node/v24.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5949)\n    at YG (file:///Users/yar/.nvm/versions/node/v24.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5580)\n    at fq2 (file:///Users/yar/.nvm/versions/node/v24.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1999:4809)","timestamp":"2025-05-30T19:53:02.195Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507: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-05-30T19:53:02.388Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507: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-05-30T19:53:05.563Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507: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-05-30T19:53:08.348Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507: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-05-30T19:53:31.818Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507: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-05-30T19:53:32.620Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507: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-05-30T19:53:32.805Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n   

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗