Task worktrees are only removed when a PR merges or closes #1829

Closed
opened 2026-11-08 22:00:53 +00:00 by sam · 1 comment
Owner

Worktrees are cleaned up only in PR reconciliation (merged or closed). Tasks that end completed, parked, dead or closed_wont_do keep their clone forever, so the work volume fills until every new task parks on disk low and retries.

Done when: a task reaching a terminal status removes its worktree; a parked task's worktree is removed after a retention period (or when the volume is low), oldest first; the dashboard shows how much space task worktrees use.

Worktrees are cleaned up only in PR reconciliation (merged or closed). Tasks that end completed, parked, dead or closed_wont_do keep their clone forever, so the work volume fills until every new task parks on disk low and retries. Done when: a task reaching a terminal status removes its worktree; a parked task's worktree is removed after a retention period (or when the volume is low), oldest first; the dashboard shows how much space task worktrees use.
Author
Owner

Fixed on main and deployed to carina; see the commit citing #1829.

Fixed on main and deployed to carina; see the commit citing #1829.
sam closed this issue 2026-11-08 23:17:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1829