Repository navigation
Codex 0.167.0
This SDK release targets Codex app-server 0.167.0 and includes regenerated protocol models for that version, including the experimental schema. Experimental RPCs still require AppServerInitializeOptions(experimental_api=True).
Runtime and Packaging
- Install the full Codex CLI through the pinned
openai-codex-cli-bin==0.167.0dependency, including the Code Mode host and sandbox helpers on supported Linux, macOS, and Windows platforms. - Replace the SDK's embedded app-server executables and Rust wheel-tag shim with a small, universal pure-Python wheel. A separate Codex installation is not required on supported platforms.
- Retain
codex_path_overrideand the fallback tocodexonPATHwhen the runtime package is unavailable.
SDK Changes
- Add sync and async memory status/reset APIs, per-thread memory controls and summaries, and feedback archive saving. Memory RPCs are experimental;
memory.reset()permanently deletes memories for the app-server's entireCODEX_HOME. - Align existing thread, turn, fork, list, and initialization options with the current protocol, including the required-human-approval capability.
- Preserve explicit nullable protocol values while omitting unset wrapper arguments and optional fields that the upstream schema does not allow to be null.
- Dispatch server-request handlers without blocking the protocol reader, allow reentrant client calls, and cancel outstanding handlers during shutdown. Handlers can overlap; protect shared mutable state.
- Tighten stream subscription filtering and cleanup around cancellation and connection failures.
Migration Notes
- Detached reviews were removed upstream.
review()runs on the current thread and only accepts inline delivery. Start or fork a separate thread first when an isolated review is needed. - Generated
AudioUserInput,InputAudioContentItem, andImageGenerationThreadItemare now union wrappers. Read their fields through.rootand construct them using the corresponding variants ormodel_validate(...).
Verification
CI passed for commit 26738f2f19d455647953d85681883492b30e3f46: lint, mypy, 331 tests passed with 2 credential-gated tests skipped in the normal suite, 92.86% coverage, and the separate real-Codex integration step passed.
Full changelog: v1.159.2...v1.167.0