You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Bug FixesKind: in v2.1.323,
Bug FixesSection of the release
What
When a session leaves a worktree, Claude Code goes back to the folder it recorded as the original. It used to stay where it was if that recorded folder was written as a network path. Now, if the recorded folder is a network path or cannot be entered, Claude Code tries the folder the session was in before EnterWorktree ran. It logs a note when it does this.
When a session is resumed, Claude Code also records the checkout and folder it was launched from.
Why
This stops a session from being left inside a worktree that has already been deleted.