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.108 ·

ExitWorktree and EnterWorktree Subagent Validation

Entry
JSON All of v2.1.108
EntryKind: in v2.1.108,
ChangesSection of the release

Both ExitWorktree and EnterWorktree now validate that they are not being called from a subagent with a cwd override (e.g., isolation: "worktree" or explicit cwd). This prevents subagents from mutating the parent session's working directory.

Details
  • Error: "ExitWorktree cannot be called from a subagent with a cwd override — it would mutate the parent session's process-wide working directory."
  • Directs subagents to use Bash with cd for directory changes
Evidence

Worktree validation (search for "ExitWorktree cannot be called from a subagent")

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

See this entry in the whole of v2.1.108 →

Feedback