[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

  1. Add a gitignored directory (e.g. my_local_package/) to includeIgnoredFiles in .claude/settings.local.json:
{
  "includeIgnoredFiles": [
    "my_local_package/**"
  ]
}
  1. Use Grep to search within the ignored directory — works correctly, returns matches.
  1. Use Glob with a pattern like my_local_package/**/*.pyreturns 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

View original on GitHub ↗

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