pub async fn run_codex_with_stdin_prompt(
codex: &Codex,
args: Vec<String>,
prompt: &str,
) -> Result<CommandOutput>Expand description
Run a codex command, writing prompt to the child’s stdin.
For codex exec -, where the prompt is delivered on stdin rather than as
an argument. The prompt is written and the handle dropped, so the CLI sees
EOF and stops waiting for more.
Retry does not apply. The policy is deliberately ignored rather than honored: a retry would have to write the prompt again, and the first attempt has already moved the caller’s data into a pipe that cannot be rewound. Silently retrying with an empty stdin would be worse than not retrying at all.