Skip to content

v0.26.2

Latest

Choose a tag to compare

@openai-sdks openai-sdks released this 01 Dec 18:40
24c238d

Special thanks

Thanks to Luca Franco for disclosing the risk of running a previously rejected tool call after a change to the tool's approval default. Original report · Python fix

0.26.2 (2026-12-01)

Bug Fixes

  • clean the session window when a compaction wrapper's store applies the limit (81d25ba)
  • deps: bump actions/create-github-app-token from 3.3.0 to 3.4.0 (#6301) (229d04d)
  • deps: bump actions/upload-artifact from 7.0.1 to 7.0.2 (#6302) (1d230d1)
  • deps: bump astral-sh/setup-uv from 10.3.2 to 10.4.0 (#6300) (65c19e7)
  • deps: bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 (#6303) (923d35e)
  • deps: bump the codeql group with 2 updates (#6299) (f93ce98)
  • deps: update openai requirement from <4,>=3.52.0 to >=3.58.0,<4 in /examples/realtime/twilio_sip (#6304) (47d0352)
  • deps: update openai requirement in /examples/realtime/twilio_sip (47d0352)
  • preserve per-call decisions when changing tool approval defaults (f59a089)
  • sandbox: omit unmaterialized eager skills when manifest owns skills path (#6146) (6d1e385)
  • sandbox: resend the same Cloudflare workspace archive on hydrate retry (8949a45)
  • use max_completion_tokens for official Chat Completions (4c29ee6)

Release readiness review (v0.26.1 → 0.26.2)

Final candidate for #6289 · $final-release-review

Diff

v0.26.1...2cd8b01

Release intent

0.26.2 · Patch. Minimum required release type — patch. Compatible with the 0.26.1 public API and released checkpoints.

Release call

🟢 GREEN LIGHT TO SHIP — Reader upgrades before the first 0.26.2 checkpoint.

Scope summary

175 files (+5,936/−566). Tool approvals, handoff guardrails, Chat Completions, session history, retry accounting, sandbox restore and Windows process cancellation. Same Python and dependency requirements for the SDK.

Risk assessment

  1. 🟢 LOW — Saved runs and rollback. Version 0.26.2 has been writing schema 1.26 on every save, including nested and previously restored runs. In paired tests, 0.26.2 has been resuming 0.26.1 checkpoints and preserving individual tool decisions across changes to approval defaults. Version 0.26.1 has been rejecting 1.26 checkpoints before execution.

    • Rollout options — Upgrading readers first or routing 1.26 checkpoints to compatible workers. During rollback, continued access to compatible workers for pending 1.26 runs.
    • Files — src/agents/run_state.py, src/agents/run_context.py.
  2. 🟢 LOW — Handoff input guardrails. With RunConfig(run_handoff_input_guardrails=True), the runner has been checking the receiving agent's input after the handoff and before its first model call. In tests, the runner has been rejecting resumes without that flag before executing the approved tool, then accepting the same checkpoint with the flag.

    • Opt-in requirements — Local history across pauses and the same flag on every resume. Scope — destination input after source tools and handoff callbacks.
    • Files — src/agents/run_config.py, src/agents/run_internal/run_loop.py.
  3. 🟢 LOW — Chat Completions. On api.openai.com, the adapter has been sending ModelSettings.max_tokens as max_completion_tokens by default, with exceptions for explicit overrides and predicted outputs. In both run modes, the new opt-in has been turning empty responses with extended content-filter reasons into refusals.

    • Provider option — recognize_extended_content_filter=True on OpenAIChatCompletionsModel for providers returning content_filter:<reason>.
    • File — src/agents/models/openai_chatcompletions.py.

Documentation coverage (non-blocking)

Partial coverage — Rollout and opt-in guidance in API docstrings. Model examples from #6294 in this release. Related open PR — session cancellation in #6313 at ee32b2f. Suggested additions after release — checkpoint routing in docs/human_in_the_loop.md, handoff requirements in docs/running_agents.md and Chat Completions options in docs/models/index.md.

Notes

Matching version, lockfile, manifest and API baseline. Passing 0.26.1 public API checks and offline tests of streamed and non-streamed runs.