[BUG] Search Tool not exclude node_modules . both in vscode extenstion and claude code
Resolved 💬 2 comments Opened Dec 7, 2025 by caozhiyuan Closed Dec 7, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Search Tool not exclude node_modules . both in vscode extenstion and claude code
What Should Happen?
exclude node_modules
Error Messages/Logs
{
"role": "assistant",
"content": [{
"type": "tool_use",
"id": "call_58076668",
"name": "Glob",
"input": {
"pattern": "*"
}
}]
}, {
"role": "user",
"content": [{
"tool_use_id": "call_58076668",
"type": "tool_result",
"content": "xxx\\node_modules\\minimatch\\LICENSE
}
Steps to Reproduce
- let claude look current dir
- claude will Glob pattern: "*"
- Glob all return node_modules files
- llm use ls -lc retry
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.60 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗