{"version":"2.1.324","anchor":"worktree-file-copies-and-symlinks-go-through-a-guarded-handl","canonical_anchor":"worktree-file-copies-and-symlinks-go-through-a-guarded-handl","heading":"Setting up a worktree now copies files through one guarded path","tier":"internal","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/worktree-file-copies-and-symlinks-go-through-a-guarded-handl","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Setting up a worktree now copies files through one guarded path\n\nCopying files, linking folders and copying settings.local.json into a new worktree now share one guarded method, and copy errors name the system error code\n\n**What**\n\nA worktree is an extra working copy of a git repository in its own folder. When Claude Code sets one up, it copies some files into it. These steps now all go through one shared, guarded way of handling files:\n\n- copying the files listed in .worktreeinclude\n\n- linking folders into the worktree\n\n- copying settings.local.json\n\nWhen a copy fails, the log message now includes the error code reported by the system.\n\n**Why**\n\nThis makes worktree setup harder to trick with unusual paths, and the error code makes a failed copy easier to diagnose.\n\n- Area: Worktrees\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}