Skip to content

v1.167.0

Latest

Choose a tag to compare

@gersmann gersmann released this 08 Nov 21:07

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.0 dependency, 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_override and the fallback to codex on PATH when 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 entire CODEX_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, and ImageGenerationThreadItem are now union wrappers. Read their fields through .root and construct them using the corresponding variants or model_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