{"version":"2.1.329","anchor":"hook-ended-prompts-can-report-hook-failed-and-hook-timed-out","canonical_anchor":"hook-ended-prompts-can-report-hook-failed-and-hook-timed-out","heading":"Apps can learn that a prompt was stopped by a failed or timed-out hook","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/hook-ended-prompts-can-report-hook-failed-and-hook-timed-out","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Apps can learn that a prompt was stopped by a failed or timed-out hook\n\nWhen a hook fails or times out and ends a prompt, apps built on Claude Code can now receive the reason as text\n\n**What**\n\nHooks are your own commands that Claude Code runs at set moments, for example when you submit a prompt. When a hook ends a prompt without a decision, the message Claude Code sends to apps built on it can now include a reason. That reason says whether the hook failed or timed out, and carries Claude Code's own explanation. Before, no reason was sent in that case.\n\n**Why**\n\nApps that run Claude Code can now tell their users why a hook stopped a prompt, instead of showing nothing.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}