Skip to content

Dot-directories were hidden from the tree, search, and the agent - #66

Merged
Seungpyo1007 merged 1 commit into
developfrom
fix/dot-directories-hidden
Aug 5, 2026
Merged

Dot-directories were hidden from the tree, search, and the agent#66
Seungpyo1007 merged 1 commit into
developfrom
fix/dot-directories-hidden

Conversation

@Seungpyo1007

Copy link
Copy Markdown
Member

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:

if (it.name.startsWith(".") && it.isDirectory() && it.name !== ".github") continue;

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 .github carve-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.json and .claude/agents/reviewer.md missing from both the tree and search, while .github/workflows/ci.yml and .env (a dot file, never covered by the rule) showed up fine.

The fix

Drop the rule; IGNORE_DIRS is 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. .git and node_modules were already there and stay excluded.

Verification

Real-app probe (CDP), 8/8 (was 5/8):

  • .vscode/settings.json and .claude/agents/reviewer.md now appear in readTree and are found by searchFiles,
  • .git/config and node_modules/** still appear in neither.

972 unit tests passing. npm run typecheck clean. main.cjs line endings unchanged (1903 CRLF / 0 LF).

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개 통과.
@Seungpyo1007 Seungpyo1007 added this to the v0.3 (2026-09-30) milestone Aug 5, 2026
@Seungpyo1007 Seungpyo1007 added the bug Something isn't working label Aug 5, 2026
@Seungpyo1007 Seungpyo1007 self-assigned this Aug 5, 2026
@Seungpyo1007
Seungpyo1007 merged commit 1c6b7e1 into develop Aug 5, 2026
1 check passed
@Seungpyo1007
Seungpyo1007 deleted the fix/dot-directories-hidden branch August 5, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant