pub fn prepare_input(
action: InputAction,
) -> Result<PreparedInput, InputPrepareError>Expand description
Converts an input action to bounded writes without touching a PTY.
Agent and shell commands require a dispatcher that can prove the current foreground target. Prompt paste and submit are emitted as separate writes.