Skip to content

Remove a committed AI-assistant scratch screenshot, ignore /tmp/ - #15

Merged
stefan-burke merged 1 commit into
mainfrom
remove-assistant-scratch-dir
Sep 3, 2026
Merged

Remove a committed AI-assistant scratch screenshot, ignore /tmp/#15
stefan-burke merged 1 commit into
mainfrom
remove-assistant-scratch-dir

Conversation

@stefan-burke

Copy link
Copy Markdown
Collaborator

A Claude Code plan session wrote a screenshot of the homepage under tmp/claude-0/…/scratchpad/shots/ and it slipped into the repo via PR #5 (commit 99509b7) — it's been tracked on main since.

  • Deletes the file/directory
  • Ignores future assistant scratch output with a root-anchored /tmp/ pattern: unanchored tmp/ also excludes OS-temp paths (e.g. /tmp/cpd-fixture-*) from jscpd's gitignore-aware scans, which breaks the cpd fixture test —test/unit/scripts/cpd.test.js caught this on the first commit attempt

Note: the file remains in git history (harmless; not worth a force-push rewrite).

A Claude Code plan-session wrote a screenshot of the homepage under
tmp/claude-0/.../scratchpad/shots/, and it slipped into commit 99509b7
via PR #5. Delete it and ignore the repo-root tmp/ directory so
assistant scratch output can't be committed again. The pattern is
root-anchored: an unanchored tmp/ also excludes OS-temp paths from
jscpd's gitignore-aware scans and breaks the cpd fixture test.
@stefan-burke
stefan-burke merged commit d724e38 into main Sep 3, 2026
4 of 5 checks passed
@stefan-burke
stefan-burke deleted the remove-assistant-scratch-dir branch September 3, 2026 18:14
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