pub fn record_response(stdin_payload: &str) -> ValueExpand description
The hook’s response when the CLI’s shell prefix is this wrapper: record
the Bash call for the prefix process to claim (prefix.rs), and answer
nothing, so the CLI runs the call exactly as the model made it, its
permission rules and checks included. The one exception is the call’s
timeout (bash_timeout), answered as an updatedInput with no
permission decision. A call that can’t be recorded still runs; it just
isn’t streamed.
docs/specs/SPEC_BASH_STREAMING_VIA_SHELL_PREFIX_2026_10_10.md §2.2.