{"version":"2.1.329","anchor":"session-label-rejection-error-for-hook-label","canonical_anchor":"session-label-rejection-error-for-hook-label","heading":"Clearer error when a session's --hook-label value is not allowed","tier":"notice","area":"Hooks","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/session-label-rejection-error-for-hook-label","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Clearer error when a session's `--hook-label` value is not allowed\n\nA session whose `--hook-label` value isn't allowed now fails with its own message: use another value or ask an admin to allow it\n\n**What**\n\nSometimes the environment does not allow the value a session has for `--hook-label`. In that case Claude Code now rejects the session with a dedicated error. The message tells you to start a new session with a different value, or to ask an administrator to allow this one.\n\n**Why**\n\nAn administrator can limit which label values sessions may use, for example in remote or managed sessions. When that limit rejects a session, you now see what went wrong and what to do next.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}