You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run existing cleanup rules sooner when disk space is low
#32392
On an always-on host with many agent threads, worktrees can consume free space between automatic cleanup sweeps. In current main (0f4a130), the periodic cleanup worker runs at startup and then waits one hour between sweeps (source). Settings and thread events can also request sweeps, but I found no free-space trigger in this service. The original report was on desktop nightly 0.1.8-nightly.20261104.4165, macOS 27; this diagnosis is from source inspection, not a fresh disk-exhaustion reproduction.
Proposed scope
Would an opt-in low-free-space trigger for the existing cleanup rules be welcome? It would request the same sweep, with a cooldown, without bypassing retention ages, local-file protection, active sessions, ownership checks or any other removal guard. It cannot recover space when no worktree is eligible. Thresholds and how to observe pressure should be agreed before implementation.
This is a feature-direction request, as CONTRIBUTING requires. No implementation is proposed yet. Orphan ownership (#25843), branch mismatches (#17813), and shared worktrees (#17816) are separate issues; triggering more sweeps would not fix those. I found no matching issue, PR or Ideas discussion for this trigger. The installed app and settings were not changed.
Investigated and written by GPT-6.1 Sol via Codex in T3 Code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
On an always-on host with many agent threads, worktrees can consume free space between automatic cleanup sweeps. In current main (0f4a130), the periodic cleanup worker runs at startup and then waits one hour between sweeps (source). Settings and thread events can also request sweeps, but I found no free-space trigger in this service. The original report was on desktop nightly 0.1.8-nightly.20261104.4165, macOS 27; this diagnosis is from source inspection, not a fresh disk-exhaustion reproduction.
Proposed scope
Would an opt-in low-free-space trigger for the existing cleanup rules be welcome? It would request the same sweep, with a cooldown, without bypassing retention ages, local-file protection, active sessions, ownership checks or any other removal guard. It cannot recover space when no worktree is eligible. Thresholds and how to observe pressure should be agreed before implementation.
This is a feature-direction request, as CONTRIBUTING requires. No implementation is proposed yet. Orphan ownership (#25843), branch mismatches (#17813), and shared worktrees (#17816) are separate issues; triggering more sweeps would not fix those. I found no matching issue, PR or Ideas discussion for this trigger. The installed app and settings were not changed.
Investigated and written by GPT-6.1 Sol via Codex in T3 Code.
All reactions