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
ImprovementsKind: in v2.1.323,
ImprovementsSection of the release
What
A worktree is a separate working copy of a git repository, which Claude creates and enters with the EnterWorktree tool. When permissions.blockFileToolReadsOutsideWorkingDirectories is on, EnterWorktree now checks the target against the folders the session was launched with:
It refuses to create, enter or move into a worktree outside those folders.
If a check fails after the move, it returns the session to its previous folder.
After such a return, the error says where the session now is.
Previously the only check was the permission prompt asking to enter the worktree.
Why
Worktrees could otherwise be used to get around the setting that confines Claude to its launch folders.