claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

file autocomplete doesn't work for uninitialized git submodules

Open ppf opened this issue 11 months ago • 1 comments

Environment:

  • macOS Darwin 25.2.0
  • Claude Code (latest)
  • ripgrep installed (/opt/homebrew/bin/rg)

Steps to reproduce:

  1. Have .gitmodules defining a submodule
  2. Have the submodule directory with full .git folder (cloned separately, not via git submodule update --init)
  3. Directory is NOT in .gitignore
  4. 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

ppf avatar Dec 23 '25 21:12 ppf

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14566
  2. 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

github-actions[bot] avatar Dec 23 '25 21:12 github-actions[bot]

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

github-actions[bot] avatar Dec 27 '25 09:12 github-actions[bot]