[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

  1. Create a project with a directory listed in .gitignore:

``
/docs/
``

  1. Add some files inside that directory (e.g., docs/notes.md)
  2. Open /config and set "Respect .gitignore in file picker" to false
  3. Confirm ~/.claude.json contains "respectGitignore": false
  4. Start typing @docs/ in the chat input
  5. 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 /config menu as "Respect .gitignore in file picker: false"
  • The setting is correctly saved in ~/.claude.json as "respectGitignore": false
  • Downgrading to 2.0.70 via curl -fsSL https://claude.ai/install.sh | bash -s 2.0.70 restores 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

View original on GitHub ↗

11 Comments

github-actions[bot] · 7 months ago

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.

victorcheeney · 6 months ago

Yep, still occuring.

stabilefrisur · 6 months ago

Still occurring in v2.1.42

jackrim1 · 6 months ago

Still occurring in v2.1.6

Gui-FernandesBR · 5 months ago

still occurring!

megatrontz · 5 months ago

Definitely still happening. any chance this gets addressed? I wrote a lovely set of .gitignore, .ignore, and CLAUDE.md/AGENTS.md directives that make this work with literally every other agent except claude.

Gui-FernandesBR · 5 months ago

It has been resolved here. I am no longer seeing the same problem on vscode

AgainPsychoX · 5 months ago

Claude Code CLI sucks, and they ban OpenCode which fixes such issues in day or two. ;(

serhii-chernenko · 2 months ago

still there

jose-urena-imprivata · 1 month ago

Still happening on 2.1.207 (macOS)

aleciten · 1 month ago

Still happening on v2.1.210 VS Code extension (macOS)