2 people reported

All time, since Sep 22.

Worktree GC deletes idle worktrees

“Branches survive, but the working directories are gone, along with any uncommitted or untracked work in them.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/793/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Desktop worktree GC deletes idle worktrees without prompt. Background reapUntrackedWorktreeDir removes worktrees under .claude/worktrees/, including uncommitted, untracked or git-ignored files, with nothing sent to Trash.

Is this your bug?

File my report
Where
Desktop app
Error text
[info] [reapUntrackedWorktreeDir] Removed untracked worktree dir <repo>/.claude/worktrees/feature-a
Versions
2.1.281 to 2.2553.1
Platforms
macOS
How bad
Loses work: code or files lost or damaged.

Not quite your bug?

  1. Subagent worktrees not removed when isolated subagent finishes3 people
  2. Worktree always created15 people

Original reports2, newest first

  1. Desktop WorktreePool GC still force-removes idle worktrees after #96162; --force deleted git-ignored data (days of paid model output)#98186
  2. Claude desktop WorktreePool GC deletes user-created git worktrees in .claude/worktrees/#96162

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.