{"version":"2.1.334","anchor":"userpromptsubmit-hook-check-inverted","canonical_anchor":"userpromptsubmit-hook-check-inverted","heading":"A check about UserPromptSubmit hooks now gives the opposite answer","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/userpromptsubmit-hook-check-inverted","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### A check about UserPromptSubmit hooks now gives the opposite answer\n\nA check that used to pass only when no UserPromptSubmit hook existed now passes when one exists or hooks cannot be read\n\n**Unclear.** Which behaviour this check controls is not known, so its visible effect cannot be described.\n\n**What**\n\nA `UserPromptSubmit` hook is a script that runs when you submit a prompt, before Claude processes it. Claude Code uses an internal yes-or-no check about these hooks, and it has been turned around.\n\n- Before, it said yes only when no `UserPromptSubmit` hook was set up and `CLAUDE_CODE_REMOTE` was not set, among other conditions.\n\n- Now, it says yes when the hook settings cannot be read or when a `UserPromptSubmit` hook exists.\n\n- It no longer looks at `CLAUDE_CODE_REMOTE` or the other conditions.\n\n**Why**\n\nThis changes when some hook-related behaviour is offered or applied, so people who use `UserPromptSubmit` hooks may notice a difference.\n\n- Area: Hooks\n- Names: `UserPromptSubmit`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}