Skip to content

Releases: gersmann/codex-python

v1.159.2

Choose a tag to compare

@gersmann gersmann released this 01 Oct 13:27

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 removes rollback(). Use thread.revert(before_turn_id) to remove a turn and all later turns. Legacy history mode remains supported.
  • Generated ImageUserInput is now a union wrapper. Construct protocol.UrlUserInput(type="image", url=...) or protocol.FileIdUserInput(type="image", fileId=...), or use protocol.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 reports codex-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

v1.153.5

Choose a tag to compare

@gersmann gersmann released this 16 Sep 16:18

SDK-only maintenance release based on bundled Codex app-server 0.153.4. Generated protocol models and the supported public API signatures are unchanged.

  • Preserve validated nested Python objects when invoking dynamic tools.
  • Clean up cancelled requests reliably; make concurrent client shutdown and repeated stream reads deterministic.
  • Keep stream owners alive during use and stop cancellation watchers when consumption ends.
  • Publish generated contracts only after all stages succeed, and align release tags and artifacts to one commit.
  • Remove unused stderr history, duplicated service protocols, obsolete schema-file helpers, and the disconnected schema transformer.

Changes: #21

Validation: full suite 266 passed, 2 skipped, 92.02% coverage; make lint passed. The version bump also passed seven focused package/release tests and a local wheel build.

Upstream Codex: https://github.com/openai/codex/releases/tag/rust-v0.153.4

v1.153.4

Choose a tag to compare

@gersmann gersmann released this 09 Sep 07:58

Updates the bundled Codex app-server to 0.153.4.

  • Includes upstream fixes for Astra model-picker visibility, the bundled default model, and async-question guidance.
  • Protocol schemas are identical to 0.153.3; no generated model changes were needed.

Validation: make lint, make build, 22 focused release/binary tests, and a live app-server initialize + config/read smoke check passed.

Upstream release: https://github.com/openai/codex/releases/tag/rust-v0.153.4

v1.153.3

Choose a tag to compare

@gersmann gersmann released this 04 Sep 21:54

Updates the SDK and bundled app-server to Codex 0.153.3, matching the installed release. Protocol models were regenerated from that exact binary, including experimental schemas.

Changes

  • Add sync and async thread-section APIs and turn-ID-based thread revert.
  • Preserve structured turn errors, async agent-message questions, auth-recovery events, and account usage metadata.
  • Expose current turn options and updated protocol response types.
  • Accept nullable config values returned by app-server; keep TOML override validation at serialization.
  • Isolate the bundled-binary test so it cannot overwrite release assets.

Compatibility

  • Upstream thread sections replace the removed pin API: use client.thread_sections, thread.move_to_section(), and AppServerThreadListOptions(section_id=...) in place of set_pinned() and is_pinned.
  • New durable threads default to paginated history when supported. Use thread.revert(before_turn_id); count-based rollback() remains available for legacy-history threads.
  • Experimental RPCs require AppServerInitializeOptions(experimental_api=True).

Validation

  • RUSTUP_TOOLCHAIN=1.95.0 make lint: Ruff and mypy passed.
  • RUSTUP_TOOLCHAIN=1.95.0 make test: 230 passed, 2 skipped.
  • RUSTUP_TOOLCHAIN=1.95.0 make build: sdist and Linux wheel built.
  • Repeat protocol generation matched apart from its timestamp.
  • Bundled 0.153.3 app-server initialized and completed config/read successfully.

Upstream: https://github.com/openai/codex/releases/tag/rust-v0.153.3

v1.146.0

Choose a tag to compare

@gersmann gersmann released this 30 Jul 08:11

Updates the bundled Codex app-server to 0.146.0, regenerates the typed protocol, adds persisted thread pinning, and completes typed external-agent import history support.
Full Changelog: v1.145.0...v1.146.0

v1.145.0

Choose a tag to compare

@gersmann gersmann released this 22 Jul 08:48

What's Changed

  • chore: update app-server protocol for Codex 0.144.4 by @gersmann in #19
  • feat(app-server): update to Codex 0.145 paginated threads by @gersmann in #20

Full Changelog: v1.141.1...v1.145.0

v1.141.1

Choose a tag to compare

@github-actions github-actions released this 07 Jul 11:30

What's Changed

  • Update to Codex 0.140.0 and add skills API by @gersmann in #18

Full Changelog: v1.131.1...next

v1.141.0

Choose a tag to compare

@gersmann gersmann released this 22 Jun 10:47

Changes

  • Add typed MCP tool filter helpers for app-server clients.
  • Add mcp_servers.set_enabled_tools(...) and set_disabled_tools(...) with plugin MCP support and optional reload.

v1.140.0

Choose a tag to compare

@gersmann gersmann released this 20 Jun 07:00

What's Changed

  • Update to Codex 0.140.0 and add skills API by @gersmann in #18

Full Changelog: v1.131.1...v1.140.0

v1.131.1 - surface turn errors on wrappers

Choose a tag to compare

@github-actions github-actions released this 20 May 11:51
407494b

What's Changed

  • fix(app-server): surface turn errors and process events by @gersmann in #17

Full Changelog: v1.131.0...next