Claude Code v2.1.222 ·
Agent state writes preserve worktree provenance
Agent records keep their worktree history across saves, so lineage info no longer gets wiped.
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Internal ChangesKind: in v2.1.222,
Internal ChangesSection of the release
What
Persisting an agent record no longer loses the worktree lineage fields that were set by an earlier write.
Details
- A new persistence wrapper reloads the previous agent record before writing.
- It carries over
parentAgentId, inheritedWorktreePath, spawnedWithWorktree and worktreeCleanlyRemoved. worktreePath and worktreeBranch are deleted when the prior record had none.
Evidence
inheritedWorktreePath
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.222 →