pub async fn run_codex_with_stdin_prompt_cancellable<C>(
codex: &Codex,
args: Vec<String>,
prompt: &str,
cancel: C,
) -> Result<CommandOutput>Expand description
Run a codex command with a stdin prompt and an explicit cancellation signal.
Cancellation and the client’s timeout both terminate the owned process group and await the direct child before returning. Retry does not apply.