pypi openai-agents 0.26.0
v0.26.0

one hour ago

0.26.0 (2026-11-24)

Features

  • Upgrade the GPT-Live demo to 1.1 (6c4e4a2)

Bug Fixes

  • allow SDK 0.25 in the external provider example (#6068) (9b17858)
  • apply the Docker removal CPU limit to path inspection (14d13f4)
  • bound TAR path validation work per component (abc55bd)
  • check Realtime output guardrails at turn completion (dc84a13)
  • give per-call MCP metadata priority over discovery defaults (7f6f5ea)
  • honor the global tracing switch in Realtime (96b2799)
  • limit UnixLocal snapshot link rebasing to regular files (dd444fb)
  • preserve handoff redaction in Session history (6f45b21)
  • protect apply_patch staging during alias moves (a29070b)
  • require application approval for local images in codex_tool (#6171) (2a98dcd)
  • sandbox memory selection across UTC offsets (#6066) (e7ce15a)
  • sandbox: restrict Docker storage mount privileges (#6189) (b40fb80)
  • stop queued function tools after input guardrail rejection (90300af)
  • support opt-in JSON validation for Codex tool parameters (#6067) (54492d1)

Release readiness review (v0.25.0 → v0.26.0)

Final candidate review with the repository's $final-release-review skill for #6069.

Diff

v0.25.0...7263707

Release intent

Review mode Intended release Minimum required Versioning verdict
Final candidate Minor, 0.26.0 Minor Compatible

Release call

🟢 GREEN LIGHT TO SHIP. The minor version accounts for changes to Docker mounts and custom Realtime tracing. Both have supported upgrade paths.

Scope summary

55 files changed (+4,127/−458) since v0.25.0. Changes cover tools, guardrails, session history, Realtime, sandboxes, examples, and publishing. Only six release files differ from main at b40fb8097f007de181db9c382da53d8e0b7d6eaf. The package, lockfile, manifest, source version, and API snapshot agree. The SDK still supports Python 3.10+ with the same dependency bounds. The session and RunState schemas are unchanged. Some Docker sessions need replacement as described below.

Risk assessment

  1. 🟢 LOW · Docker storage. Docker now rejects InContainerMountStrategy, including read-only mounts, during creation and resume. The SDK refuses to reuse privileged containers or those with added capabilities. It also requires inspectable host settings. Start a fresh session with the revised manifest. Omit the prior session and any RunState containing it. Restore saved workspace files from a snapshot if needed. See src/agents/sandbox/sandboxes/docker.py and docs/sandbox/clients.md.
  2. 🟢 LOW · Custom tracing providers. In v0.25.0, Realtime sent its configured server tracing settings without checking the global provider. An inherited TraceProvider.is_disabled() now returns True. To retain server traces, implement the method using the same state as set_disabled(). The default provider already does this. See src/agents/tracing/provider.py and src/agents/realtime/openai_realtime.py.
  3. 🟢 LOW · Local images in the experimental Codex tool. A model-supplied file path no longer grants access. This also affects pending calls. Grant a named reference for each trusted image and use that reference in the call. See src/agents/extensions/experimental/codex/codex_tool.py.
  4. 🟢 LOW · Sandbox moves and snapshots. Moving between aliases of one file now requires private staging. On backends without that support, update the original path in place. UnixLocal only rebases absolute links to archived regular files. Before saving, replace absolute directory or root links with safe relative links. See src/agents/sandbox/apply_patch.py and src/agents/sandbox/sandboxes/unix_local.py.

Documentation coverage

Partially covered. The Docker guide in #6189 covers migration. The tool reference and Live example include the new options. The guardrails guide already explains when tool side effects can occur. No open documentation PR targets this stable release. #6136 at 6fc8b3d210d41ece16b9dba9a5093b751a2e3545 covers specialist approvals in an earlier Live example on a separate branch.

After publication, add the upgrade steps below to docs/release.md. In docs/realtime/guide.md, explain the final output check and custom tracing query. Document metadata precedence in docs/mcp.md, filtered history in docs/handoffs.md, and portable links and alias moves in docs/sandbox/guide.md. Keep the standalone external provider example on its tested SDK range (>=0.24.0,<0.26.0) until separately verified.

Key Changes

This minor release includes breaking changes for Docker storage mounts, custom Realtime tracing and local images. Check these settings before upgrading.

Highlights

  • Docker mounts. Replace in-container mounts with DockerVolumeMountStrategy and a compatible driver. For storage such as S3 Files, mount it on the Docker host and use a trusted SandboxPathGrant. Preserve read-only access and any bucket prefix. Create a fresh session with the updated manifest.
  • Realtime tracing. A custom TraceProvider must report its actual disabled state through is_disabled() to enable server traces. The built-in provider honors the global tracing switch.
  • Codex tool inputs. For an image you control, pass image_attachments={"diagram": "/app/diagram.png"}. Use "diagram" as the local_image path. Grant only absolute paths without commas. For strict input types such as tuples, opt into parameter_validation_mode="json". The default remains "python".
  • Guardrails and history. An input tripwire stops queued function tools. Use run_in_parallel=False to check input before any tool starts. Handoff filters keep redacted call arguments in saved session history. Realtime checks remaining text and audio transcripts at turn end.
  • MCP. For conflicting keys, explicit call metadata takes priority, followed by tool_meta_resolver, then discovery defaults.
  • Sandboxes. Use safe relative directory links in portable UnixLocal snapshots. Patch moves protect staged files. TAR validation checks one path component at a time. Docker's removal CPU limit also covers path inspection. Memory selection compares timestamps across UTC offsets.
  • Live example. The browser demo adds speech-triggered standby and search citations. Its openai>=3.57.0,<4 requirement applies only to the demo.

Notes

The comparison uses the latest stable release on main. The 1.0 alpha tags belong to a separate release line.

Don't miss a new openai-agents release

NewReleases is sending notifications on new releases.