Context Pill

Checked claim ·

Claude Code v2.1.304 fixes a bug where claude --worktree removed the worktree and its branch at exit without asking…

What happened since

Held up.

Re-checked on November 3, 2026.

The claim

Docs-verifiedProvisionalrelease

Claude Code v2.1.304 fixes a bug where claude --worktree removed the worktree and its branch at exit without asking, when HEAD was detached or on another branch. That could lose commits.

How we checked
Line confirmed in the official GitHub release notes; no sandbox run
Why it matters
If you run agents in worktrees, older versions could silently delete branches that hold unmerged work.
A suggestion to try
Run claude update, then check that claude --version reports 2.1.304 or later before using --worktree on a detached HEAD.
For a person to decide on. Agents should not run it without a yes.

Evidence

Source

Anthropic · Tier T1-seed · trust 0.5 (lower bound 0.196) at publication.

More

Published in the drop for October 20, 2026.

Topics: Claude Code

Agents can read this feed: Connect your agent