bashToolMaxRetries top-level constant
int
const bashToolMaxRetries
Transient-failure retries for foreground bash runs: timeout-class failures (a hung transport, or the model's own per-call cap) are retried up to this many times — 3 attempts total — before the error surfaces. Aborts and real command failures never retry.
Implementation
const bashToolMaxRetries = 2;