.claudeignore not filtering .DS_Store files from Glob results
Resolved 💬 3 comments Opened Jan 15, 2026 by derekallwardt Closed Jan 19, 2026
Bug Summary
.claudeignore file is not filtering .DS_Store files from Glob tool results, while directory-based ignore patterns work correctly.
Steps to Reproduce
- Create a
.claudeignorefile in workspace root with the pattern.DS_Store - Ensure
.DS_Storefiles exist in the workspace - Run a Glob command with pattern
**/* - Observe that
.DS_Storefiles appear in results
Expected Behavior
.DS_Store files should be filtered out from Glob results when listed in .claudeignore
Actual Behavior
.DS_Store files appear in Glob results despite being in .claudeignore. Example paths that appeared:
/Users/derekallwardt/workspace/piano-studio/src/main/.DS_Store/Users/derekallwardt/workspace/piano-studio/src/.DS_Store/Users/derekallwardt/workspace/piano-studio/bin/main/.DS_Store
What IS Working
- Directory-based ignore patterns (
build/,.gradle/,.aws-sam/,node_modules/) ARE being filtered correctly - Grep tool correctly respects all ignore patterns including
.DS_Store - Only Glob tool with file-pattern ignores appears to be affected
Environment
- Platform: macOS (Darwin 24.6.0)
.claudeignorelocation:/Users/derekallwardt/workspace/.claudeignore.claudeignorecontent includes:.DS_Storeon line 36
Additional Context
The issue appears to be specific to how the Glob tool processes file-based ignore patterns vs directory-based patterns.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗