Repository navigation
v1.159.2
Updates the SDK to bundled Codex app-server 0.159.2, with protocol types regenerated from that exact release, including its experimental schema.
All eight platform wheels and the source distribution are available on PyPI and as release assets below.
Changes
- Update the bundled app-server release and CI binary pins to
rust-v0.159.2. - Support URL and file-ID image inputs through the existing high-level input API.
- Preserve nested required nullable fields in typed RPC payloads, including unauthenticated MCP resource targets and explicit service-tier clears.
- Preserve structured errors on interrupted turns, including Guardian approval-denial errors.
- Retain new model access-program, account routing, rate-limit, managed-policy, MCP diagnostics, and feedback metadata in existing result wrappers.
- Add generated contracts for thread attachments, gateway OAuth, user verification, memory readiness, rollout compression, and item-anchored history pagination. New endpoints are available through typed raw RPC.
Migration
- Upstream removed
thread/rollback; the SDK removesrollback(). Usethread.revert(before_turn_id)to remove a turn and all later turns. Legacy history mode remains supported. - Generated
ImageUserInputis now a union wrapper. Constructprotocol.UrlUserInput(type="image", url=...)orprotocol.FileIdUserInput(type="image", fileId=...), or useprotocol.ImageUserInput.model_validate(...).
Validation
make lint: Ruff and mypy passed.make test: 272 passed, 2 skipped; 92.12% coverage.make build: wheel built successfully and its bundled binary reportscodex-app-server 0.159.2.- Protocol regeneration is reproducible apart from its timestamp.
- CI passed, including integration tests against the real bundled app-server.
- Independent correctness and Ponytail reviews passed.
Upstream Codex: https://github.com/openai/codex/releases/tag/rust-v0.159.2
Full SDK changelog: v1.153.5...v1.159.2