Stop Failure
Stop Failure
Section titled “Stop Failure”Configuration for stop failure hook commands that run when a turn ends due to an API error
Configuration Properties
Section titled “Configuration Properties”commands
Section titled “commands”List of commands to execute when a turn ends due to an API error (rate limit, auth failure, etc.). Commands run in order and can provide custom error messages.
| Attribute | Value |
|---|---|
| Type | array |
| Default | [] |
Nested Types
Section titled “Nested Types”This section uses the following nested type definitions:
StopCommand Type
Section titled “StopCommand Type”Configuration for individual stop commands with optional messages
Properties:
| Property | Type | Default | Description |
|---|---|---|---|
maxOutputLines | `integer | null` | null |
message | `string | null` | null |
notifyPerCommand | `boolean | null` | null |
run | string | - | The shell command to execute |
showCommand | `boolean | null` | true |
showStderr | `boolean | null` | null |
showStdout | `boolean | null` | null |
timeout | `integer | null` | null |
See Also
Section titled “See Also”- Configuration Overview - Complete reference for all configuration options