Vibeleaderboard
← All Intel
Intel / repo

openai-agents-python v0.26.0

Source
github.com
Author
openai-sdks[bot]Top Viber
Date

Context

Version 0.26.0 of OpenAI's Agents SDK for Python stops its Docker sandbox from giving containers extra privileges so they can mount storage from inside, and anyone whose agent mounts storage that way must change the setup and start a new session when they upgrade. The SDK can run an agent's commands inside a sandbox, a container that holds the agent's workspace, and a manifest says what goes into it, including storage such as a cloud bucket. Until now a mount using `InContainerMountStrategy` was performed from inside the container, and to allow that the SDK created the container with the `SYS_ADMIN` capability and with AppArmor disabled, adding the `/dev/fuse` device for FUSE-based mounts. `SYS_ADMIN` is a broad Linux privilege that covers mounting filesystems among many other operations, and AppArmor is the host security profile that normally confines what a container can do. Both settings loosen the limits Docker places on code running in the container, which in an is code the agent chose to run.

The pull request describes the change as a fix to Docker sandbox isolation. Creating or resuming a Docker sandbox now fails if the manifest contains any in-container mount, read-only ones included, and the check runs before Docker does anything. Resuming also inspects the existing container and refuses one that runs in privileged mode, has added capabilities, or has a host configuration the SDK cannot read, so a container created by an earlier version with those privileges cannot be picked up again.

The release notes give two replacements: a `DockerVolumeMountStrategy` with a compatible volume driver, or storage mounted on the Docker host itself and exposed to the sandbox through a trusted `SandboxPathGrant`, keeping the same read-only setting and bucket prefix. The updated Docker guide drops direct support for S3 Files, which now goes through the host-mount route. Old sessions and any saved `RunState` that contains them cannot be resumed; the notes say to start a fresh session with the revised manifest and restore workspace files from a snapshot if needed. The release review rates this change as low risk and flags three other low-risk changes that need action: one for custom Realtime tracing providers, one for local images in the experimental Codex tool, and one for file moves and links in sandboxes before a snapshot is saved.

Key takeaways · AI-distilled
  • Docker sandboxes in openai-agents-python v0.26.0 reject InContainerMountStrategy, including read-only mounts, at creation and resume, and refuse to reuse privileged containers. The release notes say to switch to DockerVolumeMountStrategy and start a fresh session.
  • The experimental Codex tool no longer lets a model-supplied file path grant access to a local image, and this applies to pending calls too. Callers now grant a named reference such as image_attachments={"diagram": "/app/diagram.png"} and pass that name as local_image.
  • A custom TraceProvider must now report its real state through is_disabled() to keep Realtime server traces. In v0.25.0, Realtime sent its configured tracing settings without checking the global provider; the built-in provider already handles this.
  • When an input guardrail tripwire fires, queued function tools now stop. According to the release notes, setting run_in_parallel=False checks input before any tool starts at all.
  • OpenAI's own release review rated all four breaking changes low risk: 55 files changed since v0.25.0, Python 3.10+ support and bounds are unchanged, and the session and RunState schemas are untouched.
Terms in this piece · Glossary
  • Agent sandbox — An isolated runtime with explicit limits for agent-executed work.
  • Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
  • Metadata — Data about a file, such as its name, size and timestamps, as distinct from its contents.
  • Dependency — Anything a program needs to run that its author did not write: the language, its standard library, or a separately installed package.
More from openai-sdks[bot]
Recommended reads
Comments

Checking sign-in…

Loading comments…