Skip to main content

DEFAULT_STDIN_READ_TIMEOUT_SECS

Constant DEFAULT_STDIN_READ_TIMEOUT_SECS 

Source
pub const DEFAULT_STDIN_READ_TIMEOUT_SECS: u64 = 60;
Expand description

Deadline, in seconds, for reading a memory body from stdin.

The stdin_helper doc comment has promised “default 60s” since the module was written while every call site passed the literal; this constant makes the promise real. Sixty seconds is generous for a pipe that is already producing and short enough that a held-open pipe fails inside an agent turn.

Operational policy, so it is configurable: XDG cli.stdin_timeout_secs, resolved by crate::runtime_config::stdin_timeout_secs.