[BUG] includeIgnoredFiles setting not applied to Glob tool
Resolved 💬 3 comments Opened Mar 7, 2026 by adarshchbs Closed Apr 4, 2026
Description
The includeIgnoredFiles setting in .claude/settings.local.json works correctly with the Grep tool but is not applied to the Glob tool. This means gitignored files can be searched by content but cannot be discovered by file pattern.
Steps to Reproduce
- Add a gitignored directory (e.g.
my_local_package/) toincludeIgnoredFilesin.claude/settings.local.json:
{
"includeIgnoredFiles": [
"my_local_package/**"
]
}
- Use Grep to search within the ignored directory — works correctly, returns matches.
- Use Glob with a pattern like
my_local_package/**/*.py— returns no files.
Expected Behavior
Both Grep and Glob should respect the includeIgnoredFiles setting and include matching gitignored files in their results.
Actual Behavior
- Grep: ✅ Finds content in ignored files
- Glob: ❌ Returns "No files found" for the same ignored directory
Environment
- macOS (Darwin 24.6.0)
- Claude Code CLI
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗