Skip to main content

record_response

Function record_response 

Source
pub fn record_response(stdin_payload: &str) -> Value
Expand 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. 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.