Expand description
CodexExecutor: drives codex exec --json as a one-shot
ChildExecutor (ExecutorSpec::Codex).
CodexExecutor: a [ChildExecutor] that drives the official OpenAI
Codex CLI through codex exec --json.
The CLI is one process per activation. Prompts are written on stdin (never
argv), stdout is consumed as bounded JSONL, and the process owns a process
group so cancellation tears down any descendants as well as the leader.
Provider/auth selection and Bamboo permission-profile mapping are resolved
before every spawn. Thread ids are persisted per child so later activations
can use codex exec resume, with bounded history rehydration when the local
Codex transcript is unavailable.
Structs§
- Codex
Auth Config - Fully resolved auth posture. The custom-provider key is deliberately
private and this type has no
Debugimplementation, preventing accidental secret logging from executor/spec diagnostics. - Codex
Executor - One-process-per-activation Codex CLI executor.
- Codex
Permission Config
Enums§
Constants§
- MIN_
CODEX_ VERSION - The oldest Codex CLI schema this executor intentionally supports. The
executor additionally capability-checks
exec --helpandexec resume --help, so a backported or vendor build must still expose the required flags. Version 0.144 is the schema verified by issue #569. The oldest Codex CLI schema Bamboo intentionally supports.
Functions§
- read_
codex_ provider_ token - Read the short-lived Bamboo provider token for Codex command-backed auth. The final path component is opened without following symlinks on Unix, and permissions are verified on the opened descriptor to avoid check/open races.
- resolve_
codex_ app_ server_ permission_ config - App-server mode always routes approvals to Bamboo. Accepting
neveroron-failurehere would make the selected transport’s safety contract lie. - resolve_
codex_ auth_ config - Resolve and validate the public provision fields plus the one referenced provider credential carried in the in-memory secrets envelope.
- resolve_
codex_ permission_ config - resolve_
codex_ state_ dir - Resolve the per-child directory used for
--output-last-message.