Before submitting#
Area#
apps/server
Steps to reproduce#
mkdir -p parent/repoA && cd parent/repoA
git init
echo x > file.txt
echo x > .env.example
echo "ignored.txt" > .gitignore && echo x > ignored.txt
git add -A && git commit -m init
Add parent (not repoA) as a project, open the Files panel or search .env.example in the @ picker.
Expected behavior#
repoA/.env.example and repoA/.gitignore are listed. They're tracked, non-ignored files — per #7558 the filter is .gitignore, not dotfiles.
Actual behavior#
All dot-entries under child repos are missing from the Files panel, @ picker, file search and content search. Only repoA/file.txt shows.
Root cause#
It's in fff (@ff-labs/fff-node 0.9.4, behind WorkspaceSearchIndex), reproducible against the library directly. The gate is simply whether the index root itself is a git repo:
basePath = parent (plain folder) => ["repoA/file.txt"]
basePath = parent (after git init) => [".dotfiles/zshrc", "repoA/.env.example", "repoA/file.txt"]
basePath = parent/repoA => [".env.example", ".gitignore", "file.txt"]
From a non-git parent, repoA/ignored.txt is still correctly excluded — fff discovers nested repos and applies their .gitignore. But hidden-file inclusion is keyed off the root only, so a non-git root hides every dot-entry: dot-dirs at the root level and tracked dotfiles inside every nested repo. git init in the root flips all of them visible at once.
Real-world shape: a workspace folder holding many git repos. Add the folder as one project and no dotfiles exist anywhere in the Files panel — not at the top level, not inside any repo.
InitOptions has no toggle and the filter is in the Rust binary, so the fix is upstream in fff or a supplemental pass in WorkspaceEntries. Same root cause as #8665 (plain non-git projects) — keying hidden-file inclusion off the same per-directory repo context already used for ignore rules fixes both.
Version#
current main (fff-node 0.9.4)
Closing as a duplicate of https://github.com/pingdotgg/t3code/issues/8665. Both cases lose dot-entries when the search index starts at a non-Git project root. The nested-repository reproduction is linked there so tracked dotfiles inside child repositories remain part of the fix.