{"version":"2.1.334","anchor":"taskcreated-hooks-cancellation-also-tolerates-turn-interrupt","canonical_anchor":"taskcreated-hooks-cancellation-also-tolerates-turn-interrupt","heading":"Interrupting Claude while TaskCreated hooks run no longer shows a hook error","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/taskcreated-hooks-cancellation-also-tolerates-turn-interrupt","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Interrupting Claude while `TaskCreated` hooks run no longer shows a hook error\n\nIf you interrupt a turn while `TaskCreated` hooks are running, Claude Code now logs it as a cancellation instead of raising an error\n\n**What**\n\nHooks are your own commands that Claude Code runs at set moments. `TaskCreated` hooks run when a task is being created. If those hooks were stopped because the connection to them closed, Claude Code already logged that as a cancellation. It now also does this when you interrupt the turn, meaning you stop Claude's current reply, while the hooks are running. Before, an interrupt caused the error to be passed on.\n\n**Why**\n\nStopping Claude partway through no longer produces a hook error. It is recorded as a normal cancellation.\n\n- Area: Hooks\n- Names: `TaskCreated`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}