Dot-directories were hidden from the tree, search, and the agent - #66
Merged
Conversation
IGNORE_DIRS 와 별개로 "점으로 시작하는 폴더는 전부 건너뛴다(.github 만 예외)" 라는 규칙이 세 순회(트리·검색·치환)에 각각 박혀 있었다. 그래서 .vscode/settings.json 도 .claude/agents/*.md 도 트리에 안 나오고 검색에도 안 걸렸다 — 열려면 경로를 정확히 알아야 했고, 에이전트는 그 파일들이 아예 없는 줄 알았다. .github 만 예외로 뚫려 있던 것이 그 규칙이 임시방편이었다는 표시다. 규칙을 걷어내고 무엇을 숨길지는 IGNORE_DIRS 한 곳이 정하게 한다. 점 폴더를 일괄로 막던 그물이 사라졌으니 무거운 것들(.cache · .turbo · .gradle · .pytest_cache · .svelte-kit · .yarn · .terraform 등)은 이름으로 적어 둔다. .git · node_modules 는 그대로 빠진다. 실제 앱 검증 8/8 (고치기 전 5/8) — .vscode · .claude 안이 트리와 검색 양쪽에 나오고, .git · node_modules 는 여전히 안 나온다. 단위 972개 통과.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same family as #65: the app answering confidently from a picture it never fully looked at.
The bug
Alongside
IGNORE_DIRS, each of the three directory walks (tree, search, replace) carried its own rule:So
.vscode/settings.json,.claude/agents/*.md,.husky/*and friends appeared in no tree and matched no search. Opening one required knowing its exact path, and the agent simply believed those files did not exist. The.githubcarve-out is the tell that the rule was a stopgap someone had already had to punch through once.Measured before the fix: 5/8 —
.vscode/settings.jsonand.claude/agents/reviewer.mdmissing from both the tree and search, while.github/workflows/ci.ymland.env(a dot file, never covered by the rule) showed up fine.The fix
Drop the rule;
IGNORE_DIRSis now the single place that decides what is hidden. Since the blanket net is gone, the heavy dot-directories are listed by name:.cache,.turbo,.parcel-cache,.gradle,.pytest_cache,.mypy_cache,.ruff_cache,.tox,.nuxt,.output,.svelte-kit,.angular,.yarn,.pnpm-store,.terraform,.vs..gitandnode_moduleswere already there and stay excluded.Verification
Real-app probe (CDP), 8/8 (was 5/8):
.vscode/settings.jsonand.claude/agents/reviewer.mdnow appear inreadTreeand are found bysearchFiles,.git/configandnode_modules/**still appear in neither.972 unit tests passing.
npm run typecheckclean.main.cjsline endings unchanged (1903 CRLF / 0 LF).