.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

  1. Create a .claudeignore file in workspace root with the pattern .DS_Store
  2. Ensure .DS_Store files exist in the workspace
  3. Run a Glob command with pattern **/*
  4. Observe that .DS_Store files 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)
  • .claudeignore location: /Users/derekallwardt/workspace/.claudeignore
  • .claudeignore content includes: .DS_Store on line 36

Additional Context

The issue appears to be specific to how the Glob tool processes file-based ignore patterns vs directory-based patterns.

View original on GitHub ↗

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