Skip to content

feat: automatic worktree suspension#1231

Merged
jonathanlab merged 2 commits intomainfrom
03-13-feat_automatic_worktree_suspension
Mar 16, 2026
Merged

feat: automatic worktree suspension#1231
jonathanlab merged 2 commits intomainfrom
03-13-feat_automatic_worktree_suspension

Conversation

@jonathanlab
Copy link
Contributor

@jonathanlab jonathanlab commented Mar 13, 2026

This PR adds automatic suspension of worktrees if certain user configurable conditions are met. This check runs on the hour, and on every worktree creation. On suspension, the changes + current branch get snapshotted and the worktree gets deleted. On restore, the changes + branch are restored to the same worktree path.

Defaults:

maxActiveWorktrees: 5
autoSuspendAfterDays: 7

This is almost identical to archiving except for the fact that the task remains in the sidebar.

image image

Closes #865
Closes #867

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jonathanlab jonathanlab marked this pull request as ready for review March 13, 2026 15:08
charlesvien

This comment was marked as resolved.

@jonathanlab jonathanlab merged commit ed30027 into main Mar 16, 2026
15 checks passed
@jonathanlab jonathanlab deleted the 03-13-feat_automatic_worktree_suspension branch March 16, 2026 09:31
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.

Worktree eating all of disk space Clean up old worktrees

2 participants