Skip to content

Chore/prune agent worktrees - #49

Merged
mangit955 merged 3 commits into
mainfrom
chore/prune-agent-worktrees
Aug 4, 2026
Merged

Chore/prune agent worktrees#49
mangit955 merged 3 commits into
mainfrom
chore/prune-agent-worktrees

Conversation

@mangit955

Copy link
Copy Markdown
Owner

removed the worketree redundent branch and updated terminl.png

mangit955 and others added 2 commits August 4, 2026 18:11
A subagent worktree under .claude/worktrees/ is meant to be removed when the
copy comes back unchanged. One survived and sat at 276MB — a second
node_modules and a second site/ — for a branch already merged into main.
Nothing points at these directories, so the only thing that would ever
notice is du.

prune-worktrees.ts runs on SessionStart and removes one only when there is
demonstrably nothing in it: the tree is clean including untracked files, and
the branch holds no commit main lacks. Anything else is reported and left,
which is the case worth seeing — a worktree with work in it is not clutter,
it is something you forgot.

git worktree prune does not cover this. It only forgets records whose
directory is already gone, which is the one case that costs no disk.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
woop-code Ready Ready Preview Aug 4, 2026 12:54pm

The overlay tests slept 120ms and then read the rendered frame. Measured, the
1000-item transcript with a 200-line diff over it takes 83-117ms to draw on an
idle machine, so the margin was as little as 3ms and a loaded macOS CI runner
read a half-drawn frame. It failed there and nowhere else.

waitForFrame polls until the frame says what the test is about. The chord tests
get it too, for a second reason: pressing a key before the diff is mounted meant
"the edit is still pending" passed with no handler to have ignored it.

The fixed sleep stays where the assertion is that nothing happened, which is the
one case with no frame to wait for.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mangit955
mangit955 merged commit 6ecde30 into main Aug 4, 2026
5 checks passed
@mangit955
mangit955 deleted the chore/prune-agent-worktrees branch August 4, 2026 12:55
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