[BUG] "Respect .gitignore in file picker" setting ignored in 2.0.75
Status Open
Maintainer reply None cached
Activity 11 comments · opened Dec 20, 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?
The "Respect .gitignore in file picker" setting is not being honored when set to false. Files inside gitignored directories do not appear in @ autocomplete suggestions, even though the setting should include them.
What Should Happen?
Files inside gitignored directories should appear in @ autocomplete suggestions when "Respect .gitignore in file picker" is set to false.
Error Messages/Logs
No error messages. The files simply don't appear in autocomplete suggestions.
Steps to Reproduce
- Create a project with a directory listed in
.gitignore:
````
/docs/
- Add some files inside that directory (e.g.,
docs/notes.md) - Open
/configand set "Respect .gitignore in file picker" tofalse - Confirm
~/.claude.jsoncontains"respectGitignore": false - Start typing
@docs/in the chat input - Observe that files inside the gitignored directory do not appear in autocomplete suggestions
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.70 (havent tested beyond that)
Claude Code Version
2.0.75 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- The setting appears correctly in
/configmenu as "Respect .gitignore in file picker: false" - The setting is correctly saved in
~/.claude.jsonas"respectGitignore": false - Downgrading to 2.0.70 via
curl -fsSL https://claude.ai/install.sh | bash -s 2.0.70restores the expected behavior - Upgrading back to 2.0.75 breaks it again
- This is a regression introduced somewhere between 2.0.70 and 2.0.75
11 Comments
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Yep, still occuring.
Still occurring in v2.1.42
Still occurring in v2.1.6
still occurring!
Definitely still happening. any chance this gets addressed? I wrote a lovely set of
.gitignore,.ignore, andCLAUDE.md/AGENTS.mddirectives that make this work with literally every other agent except claude.It has been resolved here. I am no longer seeing the same problem on vscode
Claude Code CLI sucks, and they ban OpenCode which fixes such issues in day or two. ;(
still there
Still happening on 2.1.207 (macOS)
Still happening on v2.1.210 VS Code extension (macOS)