7 people reported

All time, since Oct 16, including 6 thumbs-up on GitHub.

Exit prompt on clean worktrees

“A WorktreeCreate hook made this worktree, so Claude Code can't tell whether it has unpushed commits.”

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/18470/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

Exit prompt on clean WorktreeCreate hook worktrees every time. Quitting asks to keep or remove the worktree even when nothing changed, with the message "Claude Code can't tell whether it has unpushed commits."

Is this your bug?

File my report
Where
WorktreeCreate hook
Error text
A WorktreeCreate hook made this worktree, so Claude Code can't tell whether it has unpushed commits.
Versions
2.1.301
Platforms
macOS
How bad
Breaks a normal workflow.

Original reports1, newest first

  1. Worktrees made by a WorktreeCreate hook now always prompt on exit, even when clean (2.1.301)#102775

Do you work on Claude Code?

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