[Bug] Glob tool consistently times out because it uses --no-ignore with rg in a large directory
Bug Description
The Glob tool is worse than useless. It times out over 20-30 seconds and then Claude ends up doing something else to actually answer the question. --no-ignore should probably never be used with rg. For context, I'm doing a search within a directory that contains hundreds of git repositories.
rg handles this just fine (though not quite as fast as fd) as long --no-ignore is excluded.
The recent work you did to encourage further use of the tools is something I just have to work around. I have a hook that blocks Glob usage and text in my CLAUDE.md that strongly discourages its use. Unfortunately, that text gets misinterpreted and causes it not to use Grep when it should (maybe this is better now?). Grep has its own issues (the permissions checks are seemingly impossible to avoid), but at least it doesn't time out.
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.32
- Feedback ID: b91b6c77-f1a9-400d-9937-46f7db5202f0
Errors
[{"error":"RangeError: stdout maxBuffer length exceeded\n at unknown\n at onData (node:child_process:153:110)\n at emit (node:events:95:22)\n at addChunk (internal:streams/readable:264:47)\n at readableAddChunkPushByteMode (internal:streams/readable:242:18)\n at handleNumberResult (internal:streams/native-readable:69:18)\n at <anonymous> (internal:streams/native-readable:43:68)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T21:53:12.440Z"},{"error":"Error: Command failed: /Users/username/.local/share/claude/versions/2.1.32 --ripgrep --files --glob */*.gemspec --sort=modified --no-ignore --hidden --glob !*.cer --glob !*.crt --glob !*.gpg --glob !*.key --glob !*.p12 --glob !*.pem --glob !*.pfx --glob !*_key --glob !.emacs-private.el --glob !.env --glob !.env.* --glob !.envrc --glob !app.config --glob !credentials.*.json --glob !credentials.json --glob !id_dsa --glob !id_ed25519 --glob !id_rsa --glob !secret.json --glob !secrets.json --glob !web.config /Users/username/project\n at genericNodeError (node:child_process:998:22)\n at exitHandler (node:child_process:103:28)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:766:16)\n at #handleOnExit (node:child_process:520:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T21:54:13.032Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at D (/$bunfs/root/claude:74:189)\n at <anonymous> (/$bunfs/root/claude:74:403)\n at exitHandler (node:child_process:109:27)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:766:16)\n at #handleOnExit (node:child_process:520:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T21:54:13.033Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗