Repository navigation
gitignore: match the stray "~" TMPDIR dir at any depth, plus /temp/ - #7499
Merged
Merged
Conversation
|
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
force-pushed
the
gitignore-stray-tmpdir
branch
from
July 27, 2026 12:23
4d725dc to
6df22ad
Compare
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.
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, andstudio/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 directorytests/studio/test_chat_preset_builtin_invariants.pywrites into, which showed up as 3 more tracked files in the same PR.Verified with
git check-ignorethat 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.