file autocomplete doesn't work for uninitialized git submodules
Environment:
- macOS Darwin 25.2.0
- Claude Code (latest)
- ripgrep installed (/opt/homebrew/bin/rg)
Steps to reproduce:
- Have .gitmodules defining a submodule
- Have the submodule directory with full .git folder (cloned separately, not via git submodule update --init)
- Directory is NOT in .gitignore
- Try @submodule/file.json autocomplete → doesn't suggest files
Expected: Files in untracked/uninitialized submodule directories should be indexed if not gitignored
Actual: No file suggestions until running git submodule update --init
Root cause: Filesystem traversal treats nested .git directories as repository boundaries and excludes them from indexing
Workaround: Initialize submodule properly or use custom fileSuggestion with git ls-files
Found 2 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/14566
- https://github.com/anthropics/claude-code/issues/8672
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #14566.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code