Skip to content

gitignore: match the stray "~" TMPDIR dir at any depth, plus /temp/ - #7499

Merged
danielhanchen merged 1 commit into
mainfrom
gitignore-stray-tmpdir
Jul 27, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
gitignore-stray-tmpdir

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The /~/ rule is root-anchored, so it only catches a stray ~ directory created at the repo root. Tools run from a subdirectory create it there instead, and studio/frontend/~/CLAUDE_CODE_TMPDIR/ reached #7356 as 708 tracked files (a Node compile cache plus cwd markers). Unanchoring it to ~/ matches at any depth.

Also ignores /temp/, the repo-root scratch directory tests/studio/test_chat_preset_builtin_invariants.py writes into, which showed up as 3 more tracked files in the same PR.

Verified with git check-ignore that both real paths from #7356 now match, that ~/ and /temp/ catch nothing legitimate, and that nothing under either path has ever been tracked on main.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

The `/~/` rule was root-anchored, so it only caught a stray "~" directory
created at the repo root. Tools run from a subdirectory create it there
instead, and studio/frontend/~/ once reached a PR as 708 tracked files (a
Node compile cache plus cwd markers). Unanchor it.

Also ignore /temp/, the repo-root scratch dir
tests/studio/test_chat_preset_builtin_invariants.py writes into. Nothing
under either path has ever been tracked on main.
@danielhanchen
danielhanchen force-pushed the gitignore-stray-tmpdir branch from 4d725dc to 6df22ad Compare July 27, 2026 12:23
@danielhanchen
danielhanchen merged commit 7081522 into main Jul 27, 2026
6 checks passed
@danielhanchen
danielhanchen deleted the gitignore-stray-tmpdir branch July 27, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant