[BUG] @ command file picker no longer shows gitignored files - regression

Resolved 💬 2 comments Opened Oct 22, 2025 by TravisGautier Closed Oct 23, 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?

Platform: Linux (Manjaro 6.6.107-1-MANJARO)

Claude Code Version: 2.0.25

Description:

The @ command file picker has stopped showing gitignored files and directories. This is a regression - this functionality was working correctly less than a week ago (around 2025-10-14).

Impact:

This breaks critical workflows that depend on referencing gitignored files via the @ command, specifically:

  • Cannot reference .gitignore files themselves
  • Cannot reference agent configuration files in gitignored directories (e.g., agents/*/TEAM-PROMPT.md)
  • Cannot reference documentation in gitignored directories (e.g., docs/*.md)

What Should Happen?

Expected Behavior:

The @ command file picker should show all files in the working directory, regardless of gitignore status. Gitignore controls what gets committed to the repository, not what files are accessible to development tools.

Actual Behavior:

The @ command file picker filters out:

  • .gitignore files
  • All files within gitignored directories

Error Messages/Logs

Steps to Reproduce

  1. Create a git repository with a .gitignore file
  2. Add directories to .gitignore (e.g., agents/, docs/)
  3. Create files within those directories
  4. Launch Claude Code from the repository root
  5. Attempt to use the @ command to reference:
  • The .gitignore file itself
  • Any files within gitignored directories

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.25 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

Workaround:

Currently must type full file paths directly in messages instead of using the @ file picker. I can also rename the .gitignore, even just removing "." at the beginning, and the @ functionality returns.

View original on GitHub ↗

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