Skip to content

AttackHaltCallback

AttackHaltCallback = (halt) => Promise<AttackHaltAnswer> | AttackHaltAnswer

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:513

§6.1 — callback the GthAgentRunner invokes when the rater rates a command an attack, so an interactive surface can show the red banner and let a human type their way past it.

Absent means halt, exactly as an absent ToolApprovalCallback means the §6.2 non-interactive exit. A surface that never wires this — a CI run, an AG-UI server, a surface nobody has written yet — keeps the halt, so forgetting fails safe. It may never block a non-interactive run, and no timeout turns waiting into a grant: waiting is something only a wired surface can cause.

PendingAttackHalt

Promise<AttackHaltAnswer> | AttackHaltAnswer