Claude Code hook timeouts can defeat an external approval gate
state: watchingheat: lowuncertainty: mediumrelevance: mediumclaude-code-hooks human-approval agent-safetyRushil_cv
What is this?
A Claude Code user reports that a human-approval PreToolUse hook was terminated when its configured timeout expired, after which the tool call continued through Claude Code’s normal permission flow. The official hooks documentation in the supplied search results corroborates the key behavior: a timed-out PreToolUse hook does not block the call unless its failure is configured to block the action. The user says their open-source gate now sets the hook timeout beyond the approval window and denies expired requests, but reports that it is an early, single-author project with no production users. This is a user report about a consequential hook failure mode, not evidence of broad adoption or a newly announced Claude Code change.
Why it matters
A confirmed fail-closed option could reduce the risk for teams using human-approval hooks, but its availability and exact behavior remain unverified in this evidence.
Current assessment
A Claude Code user reports that a human-approval PreToolUse hook timed out before its approval window ended, after which the tool call continued through the normal permission flow. The supplied hooks documentation supports the general failure mode: a timed-out PreToolUse hook does not block the call unless failure is configured to block. A Reddit commenter claims that since Claude Code v2.1.295, hooks can set `onFailure: "block"` so a timeout or crash blocks the call; this claim is not independently confirmed here and should not be treated as established product behavior. If confirmed, it would be a relevant mitigation, not evidence that the original report was wrong. The user describes their open-source gate as an early, one-author project with no production users. Prevalence, the version and scope of the claimed option, and whether it covers this exact timeout path remain unresolved.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p0momentum: steady1 platformsage 728h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p52 vs 879 stories at the 720h mark (now 728h old) — ahead of agent-bridge-headless-cli-api (1.1x), behind amd-gaia-025-agent-framework (0.9x)
Evidence (2) — ⭐ canonical anchor
Interpretation history
2026-10-30T10:34:00Z
The user report remains consistent with the documented fail-open timeout behavior, while a commenter adds a potentially important mitigation: `onFailure: "block"` reportedly became available in v2.1.295. That version-specific claim is not confirmed by primary evidence here, so it tempers the warning without resolving whether the option covers this timeout path.
2026-10-29T11:29:56Z
A commenter adds a potentially important mitigation: they say Claude Code v2.1.295 introduced `onFailure: "block"`, which would make a hook timeout or crash block the call rather than fall through. This is a material, currently unverified comment-level claim; it changes the follow-up question from whether a fail-open path exists to whether the mitigation is available and correctly configured. Discussion has cooled, so the case does not warrant elevated attention now.
2026-10-27T07:27:44Z
audience grounding: medium — A human-approval hook is only a reliable safety gate if its failure behavior is fail-closed. Claude Code’s documented timeout behavior means a stalled PreToolUse hook may not block a tool call: the call can proceed to the normal permission flow unless hook failure is configured to block it. That matters for teams relying on external reviewers rather than the person at the keyboard, especially in automated or unattended workflows. The report is a useful warning, not evidence that this project is widely used or that a new platform-wide change occurred.
Decision trace
- 10-30 21:34attention_candidatematerial_reprice
- 10-30 21:34repriceThe user report remains consistent with the documented fail-open timeout behavior, while a commenter adds a potentially important mitigation: `onFailure: "block"` reportedly became available
- 10-30 21:30attention_candidateattach
- 10-30 21:30attachThe hands-on hook tests offer practical context about the enforcement role and limitations of Claude Code hooks, though they do not establish a distinct incident.
- 10-30 21:30propose_attachThe hands-on hook tests offer practical context about the enforcement role and limitations of Claude Code hooks, though they do not establish a distinct incident.
- 10-29 22:29attention_candidatematerial_reprice
- 10-29 22:29repriceA commenter adds a potentially important mitigation: they say Claude Code v2.1.295 introduced `onFailure: "block"`, which would make a hook timeout or crash block the call rather than fall t
- 10-29 22:29review_screenjev screen: material development (noul=0.93)
- 10-27 20:26sensor_dirtycomment_update
- 10-27 18:29attention_candidatecreate
- 10-27 18:27groundA human-approval hook is only a reliable safety gate if its failure behavior is fail-closed. Claude Code’s documented timeout behavior means a stalled PreToolUse hook may not block a tool call: the ca
- 10-27 18:27createThis is a concrete, potentially consequential approval-control failure, but the available evidence is a single user report.