Skip to main content

Module exec

Module exec 

Source
Expand description

Process execution layer for spawning and communicating with the codex binary, including timeout and retry support.

Structs§

CommandOutput
Raw output from a Codex CLI invocation.

Functions§

run_codex
Run a codex command with the given arguments.
run_codex_allow_exit_codes
Run a codex command and allow specific non-zero exit codes.
run_codex_cancellable
Run a codex command, stopping it gracefully if cancel resolves first.
run_codex_with_retry
Run a codex command with an optional per-command retry policy override.
run_codex_with_stdin_prompt
Run a codex command, writing prompt to the child’s stdin.
run_codex_with_stdin_prompt_cancellable
Run a codex command with a stdin prompt and an explicit cancellation signal.