Claude Code v2.1.285 · 29 Sep 2026
Hidden command lets the VS Code extension clear out deleted worktrees
A hidden claude drop-worktree-registrations command, used by the VS Code extension, removes git's records of deleted worktrees
Use it now Notable
No documentation found New Features
Copy link
Copy markdown
JSON
All of v2.1.285
Use it now Tier: how much it should matter to you
4 Useful: my rating, 1 to 5
3 Signal: worth watching, 1 to 5
Worktrees Area: what it touches
New Features Kind: in v2.1.285, 29 Sep 26
What probably matters to you Section of the release
What
Claude Code has a new hidden command, claude drop-worktree-registrations , that the VS Code extension runs. A worktree is an extra working folder attached to a git repository. When such a folder is deleted, git can keep a record of it. This command reads a list of those worktrees, given as JSON, and removes git's records of them.
The command will not run in two cases:
Why
The VS Code extension now cleans up deleted worktrees through Claude Code itself. The command is not meant to be run by hand.
Read from
Names in the bundle claude drop-worktree-registrations
See this entry in the whole of v2.1.285 →
29 Sep 2026 · 428 entries, this one is #21.
Use it now17 You'll notice286 Nothing to try yet7 Under the hood118
Open the release →
Names in this entry
cli drop-worktree-registrations A hidden claude drop-worktree-registrations command, used by the VS Code extension, removes git's records of deleted worktrees
env CLAUDE_CODE_CHILD_SESSION Set to 1 in subprocesses Claude Code spawns via the Bash, PowerShell, and Monitor tools, hook commands, and status line commands. Not set for stdio MCP server subprocesses, which are long-lived and outlive the session that spawned them. Unlike CLAUDECODE, this is only set by Claude Code itself when it launches a subprocess and not by IDE extensions, so it reliably distinguishes a nested session from a top-level claude launched in an IDE-integrated terminal. A nested interactive claude TUI started this way is automatically excluded from --resume, --continue, up-arrow history, and the claude agents list. Non-interactive claude -p sessions still persist. Set CLAUDE_CODE_FORCE_SESSION_PERSISTENCE=1 to override this exclusion. Requires Claude Code v2.1.172 or later
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 20 of 428
Apps that host Claude Code can ask it to list a directory
Use it now SDK
In v2.1.285 What probably matters to you release-page order
Next → · 22 of 428
SDK sessions accept requests to drive the terminal interface
Use it now SDK