Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.236 Home All releases olderv2.1.235 v2.1.237newer
Claude Code v2.1.236

Changing directory no longer leaves a stale working directory behind

You'll notice
Useful3 Signal2
Working Directory

Directory changes from resume, sandbox, deep links and worktrees no longer leave a stale path behind.

What

Worktree cleanup and switching, session resume, sandbox startup, deep links and CLI boot all changed directory directly before. They now go through one helper that changes directory and then immediately re-reads it, which refreshes Node's cached working directory and surfaces a deleted target right away instead of leaving a stale path to fail later.

Details
  • The re-read is wrapped so a vanished directory is swallowed rather than crashing the path that moved.
  • Worktree cleanup failure still reports as "Could not chdir to original directory while cleaning up worktree".
  • Logging switched from reading the cwd directly to a getter with a fallback.
Evidence

Could not chdir to original directory while cleaning up worktree, process.chdir, function MI(e) {\n process.chdir(e);, process.chdir(e);

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.236 →