{"version":"2.1.260","anchor":"new-spawn-hook-error-worktreecwd-conflict","canonical_anchor":"new-spawn-hook-error-worktreecwd-conflict","heading":"New spawn-hook error: worktree\/cwd conflict","tier":"notice","area":"Plugins","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.260\/e\/new-spawn-hook-error-worktreecwd-conflict","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.260","markdown":"### New spawn-hook error: worktree\/cwd conflict\n\nSpawn hooks setting both cwd and worktree isolation now fail with a clear error.\n\nIf a plugin's `agent.spawn` hook sets a `cwd` on a spawn that is isolated via a worktree, the launch now fails explicitly with an error stating that `cwd` and `isolation: \"worktree\"` are mutually exclusive, instead of silently conflicting.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}