Search the documentation
5 pages for stopfailure.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…| | `StopFailure` | No | Yes | The turn ends with an API error instead of a…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…rPromptExpansion" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact" | "PermissionRequest" | "PermissionDeni…
Hooks reference
Claude Code CLI · in the page
hooks
…t` and `SessionEnd` * once per turn: `UserPromptSubmit`, `Stop`, and `StopFailure` * on every tool call inside the agentic loop: `PreToolUse` and `PostToolUse`, except [`EndConversation`](/docs/en/too…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…| | `StopFailure` | When the turn ends due to an API error…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…| | `StopFailure` | When the turn ends due to an API error…