{"version":"2.1.328","anchor":"shell-hook-head-start-process-is-now-killed-reliably-and-wai","canonical_anchor":"shell-hook-head-start-process-is-now-killed-reliably-and-wai","heading":"Hook processes started early are now shut down reliably","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/shell-hook-head-start-process-is-now-killed-reliably-and-wai","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Hook processes started early are now shut down reliably\n\nA shell hook that Claude Code starts ahead of time now has a capped wait, an expiry and is killed once it is no longer needed\n\n**What**\n\nA hook is a command you set up to run automatically at a set moment. Claude Code can start a shell hook early, ahead of when its answer is needed, to save time.\n\nThat early-started process now:\n\n- is waited on only for a capped time\n\n- expires after a timeout\n\n- is killed when Claude Code no longer needs it\n\nPreviously, discarding it only closed its input, and it was force-killed only when it gave no answer in time. Output that matches a set pattern now also marks the command as given up.\n\n**Why**\n\nHook processes that were no longer needed could be left running in the background. They are now cleaned up.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}