Chore/prune agent worktrees - #49
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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>
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.
removed the worketree redundent branch and updated terminl.png