[Bug]: MacOs T3 fills up disk #10953
robert2411(GitHub profile, opens in a new tab) added labelsbug
robert2411(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge removed labelsbug
juliusmarminge removed labelsneeds-triage
juliusmarminge added labelsenhancement
juliusmarminge added labelsaccepted
juliusmarminge added labelsplanned
juliusmarminge added labelsvia-triage
Sign in to join this conversation.
Triage#
This matches current shipped behavior, not a regression and not a wash of #9085.
New worktree (
defaultThreadEnvMode = "worktree") creates a full git checkout under the environment’sworktrees/directory for each chat ({T3 home}/worktrees/<repo>/<branch>). A project setup script can also run there, so each thread can carry its ownnode_modules/ build artifacts. macOS is incidental — the same lifecycle exists on every platform.On
mainthose directories are not reaped by settle, archive, inactivity, or PR merge. The only removal path is the desktop “Delete the worktree too?” prompt after thread delete (useThreadActions+worktreeCleanup). That prompt is gated onlocalApi, so web and mobile never clean up. Serverthread.deletedoes not touch disk.git worktree pruneonly drops stale Git admin entries after a directory is already gone.Why this is not #9085#
#9085 / PR #9116 are a delete-path bug: deleting an archived thread skips that prompt and orphans the worktree. Landing #9116 still leaves this report open — creating many New-worktree chats without deleting them (or settling/archiving them) will keep filling the disk. The autoclean comment on #9085 is the same product ask as this issue.
Related work (already accepted, not shipped)#
autoPruneAfterDays(default 14), optional immediate orphan cleanup, and revival. That is the intended fix for this report.tmp_pack_*from timed-outgit fetch).Workaround#
Delete the thread on desktop and confirm worktree removal, or remove the trees yourself (
git worktree remove/ delete under~/.t3/worktrees). To avoid growth, use Current checkout or New thread in this worktree instead of New worktree per chat.Keeping this open as the live disk-growth report for the missing worktree lifecycle. No new product call — #5589 is the plan.