Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.207 ·

extensions.worktreeConfig Automatically Restored After Last Worktree Removal

Entry
JSON All of v2.1.207
EntryKind: in v2.1.207,
ImprovementsSection of the release

When the last linked worktree is removed (either via /exit from a worktree or when an agent worktree is cleaned up), Claude Code now checks whether extensions.worktreeConfig was enabled by Claude and restores the git config to its pre-worktree state automatically.

Evidence

Worktree config cleanup (search for "Restored extensions.worktreeConfig in" and "enabledWorktreeConfigExtension")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed extensions.worktreeConfig being left in the repo's .git/config (breaking go-git tools like tea) after the last worktree.sparsePaths…

See this entry in the whole of v2.1.207 →

Feedback