{"version":"2.1.319","anchor":"posttooluse-hook-time-limit-message-and-cancelled-hook-event","canonical_anchor":"posttooluse-hook-time-limit-message-and-cancelled-hook-event","heading":"PostToolUse hooks have a time limit when a turn is cut short","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/posttooluse-hook-time-limit-message-and-cancelled-hook-event","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### PostToolUse hooks have a time limit when a turn is cut short\n\nIf a turn ends because of a new message or a permission check, its `PostToolUse` hooks stop at a time limit and the tool result is kept without their answer\n\n**What**\n\nA `PostToolUse` hook is your own command that runs after a tool call succeeds. A tool call is one action Claude takes, such as reading a file or running a command. A turn can be ended early by a new message or by a permission check. When that happens, Claude Code now stops that turn's `PostToolUse` hooks once they reach a time limit. The tool's result is kept, but without the hook's answer.\n\n**Why**\n\nA slow hook can no longer hold up a cancelled turn forever. If your hook takes a long time, its output may be dropped when the turn has already been cut short.\n\n- Area: Hooks\n- Names: `PostToolUse`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}