2026-11-26 15:47 UTC

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

10-27 07:13⭐ origin directly observedIf your PreToolUse hook waits for a human, check its timeout. Mine silently fell back to the normal prompt.
Rushil_cv on r/ClaudeAI
—
10-30 09:21first on r/ClaudeAI · published · +74.1hTested 10 Claude Code hooks in a throwaway project. A few gotchas worth knowing before you copy any
vinishkapoor
—
10-27 07:13amplified on r/ClaudeAI 👑reddit.post.1xglt47
Rushil_cv
peak 1 · 13 comments · 58% of case engagement
10-30 09:21amplified on r/ClaudeAIreddit.post.1xjaly2
vinishkapoor
peak 7 · 3 comments · 42% of case engagement
10-27 07:25our radar first saw it · +0.2hdiscovery anchor: reddit.post.1xglt47—
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

sourceobjectauthorscorecomments
🟠 reddit ⭐If your PreToolUse hook waits for a human, check its timeout. Mine silently fell back to the normal prompt.
ClaudeAI
Rushil_cv113
🟠 redditTested 10 Claude Code hooks in a throwaway project. A few gotchas worth knowing before you copy any
ClaudeAI
vinishkapoor73

Interpretation history

Decision trace