Skip to main content

GATE_REFUSED_EXIT

Constant GATE_REFUSED_EXIT 

Source
pub const GATE_REFUSED_EXIT: i32 = 2;
Expand description

The exit status of a gate the seat refused because the hook failed. Cursor, Claude Code and Codex each read exit 2 from a tool hook as a deny. Any other failing status lets the call run: the seat sets no failClosed and no onFailure, so a missing or crashed ljos blocks nothing.