← Back to the briefs
Tools

OpenAI updates Python Agents SDK with sandbox mount restrictions and guardrail controls

OpenAI published Agents SDK Python v0.26.0, tightening Docker sandbox mounts, requiring explicit application approvals for local image access in Codex tools, and stopping queued function tools on guardrail rejection.

Sandbox security and container isolation

OpenAI published version 0.26.0 of the Python Agents SDK, introducing boundary changes to how agent sandboxes handle local storage and container execution. The runtime environment now rejects InContainerMountStrategy across both session creation and resumption, blocking even read-only variations. Developers must adopt DockerVolumeMountStrategy alongside inspectable host configurations instead.

The SDK also refuses to reuse existing privileged Docker containers or those granted added host capabilities. Because of these storage adjustments, older Docker sessions and their active RunState instances must be discarded, with users instructed to start clean sessions from updated manifests. In addition, the UnixLocal backend now limits archive link rebasing strictly to regular files rather than directory trees.

Tool authorization and input guardrails

The update modifies how agent tools parse parameters and run external tasks. Queued function tools immediately stop when an input guardrail rejects a request, preventing subsequent actions from firing after a failed check. For multi-step tools running concurrently, OpenAI highlights setting parallel tool runs to false if teams want validation checks to finish before any single action starts.

Tool permissions are tighter for local assets. The experimental Codex tool no longer permits direct model-provided file paths, requiring applications to register explicit named image references instead. Developers can also enable opt-in JSON parameter validation for Codex tool arguments, preserving structured inputs like tuples where Python type validation previously applied by default.

Realtime checks and session management

Session handling and communication layers received related stability and safety fixes. Redactions applied during agent handoffs remain intact inside saved session histories. For Model Context Protocol operations, per-call metadata overrides tool resolvers and initial discovery defaults whenever conflicting configuration keys occur.

Realtime execution sessions now evaluate output guardrails against text and audio transcripts upon turn completion. The release also aligns Realtime tracing with the global trace provider switch, requiring custom telemetry providers to define their disabled state explicitly to avoid unintentional trace suppression.

Our assessment

Teams maintaining autonomous Docker environments should review custom mount scripts before upgrading, as existing sessions using internal container mounts will fail on resume. If your workflows call the experimental Codex tool on local diagrams, audit the caller code to pass named image maps instead of direct filesystem strings.

Source: OpenAI original publication.

Original source

Read the original material

OpenAI (opens in a new tab)

The article date belongs to Agentic Horizon. The source publication date is listed separately. Vendor claims remain attributed; we have not independently tested the reported capability.

Search the publication

Find a story by title, topic, or keyword.

Press Escape to close

Ask HorizonYour site guide
Your guide to the publication

Ask Horizon.

Ask a question about the publication.

Privacy