{"version":"2.1.333","anchor":"plugin-hooks-refused-ahead-of-worktree-when-org-policy-denie","canonical_anchor":"plugin-hooks-refused-ahead-of-worktree-when-org-policy-denie","heading":"Clearer error when managed settings block plugins from making a worktree","tier":"notice","area":"Worktrees","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-hooks-refused-ahead-of-worktree-when-org-policy-denie","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Clearer error when managed settings block plugins from making a worktree\n\nWith `--worktree`, Claude Code now explains when your organization is not allowed by managed settings, instead of showing only a generic hook hint\n\n**What**\n\nWhen you start Claude Code with `--worktree` and it can first check whether worktree setup is refused, it now does that check before registering plugin worktree hooks. A worktree hook is a command a plugin runs to create the separate working copy. If the check refuses, those hooks are not registered.\n\nIf the folder is then not a git repository, the error now says: \"The organization you're signed in to isn't allowed by this computer's managed settings, so plugins can't make a worktree here. Use a login from an allowed organization.\" Before, it only suggested configuring a WorktreeCreate hook.\n\n**Why**\n\nOn a computer with managed settings, the settings an administrator controls, a worktree failure used to show a generic message. It now names the real cause and tells you to sign in with an allowed organization.\n\n- Area: Worktrees\n- Names: `--worktree`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: org\n- Heads-up: no"}