Packages
openai-agents v0.26.0 vs. pydantic-ai v2.77.0: Breaking Changes, Security Fixes & Upgrade Guide
Both flagship Python agent SDKs shipped major late-November 2026 updates: openai-agents v0.26.0 tightens Docker sandbox mounts and Realtime tracing, while pydantic-ai v2.77.0 follows six GHSA security patches in v2.74.0. Here is what breaks and how to upgrade safely.
8 min read
openai-agents v0.26.0 vs. pydantic-ai v2.77.0: Breaking Changes, Security Fixes & Upgrade Guide
Executive Summary
- Featured Packages & Versions:
openai-agentsv0.26.0(uploaded to PyPI November 23, 2026; GitHub release November 24, 2026; alongside GitHub-only previewv1.0.0-alpha.2) andpydantic-ai-slimv2.77.0(released November 27, 2026, building onv2.74.0–v2.76.0from November 24–26, 2026) (openai-agents PyPI, Nov 24, 2026; pydantic-ai-slim PyPI, Nov 28, 2026). - Language Ecosystem & AI Relevance: Both are MIT-licensed Python agent orchestration SDKs supporting multi-provider LLMs, Model Context Protocol (MCP) tool servers, sandboxed execution, and durable execution adapters (Temporal, DBOS, Prefect).
- Primary Upgrade Takeaway: Upgrading
openai-agentstov0.26.0requires replacingInContainerMountStrategyin Docker sandboxes, updating customTraceProvider.is_disabled()implementations, and passing explicitimage_attachmentsmappings for local Codex images (openai-agents Releases, Nov 24, 2026). Upgradingpydantic-aipastv2.74.0is mandatory for teams usingPlaywrightBrowser, ElevenLabs Realtime tracing, or OpenTelemetry online evaluations due to six patched GHSA security advisories, whilev2.77.0introducesSqliteSessionStorerenames andstream_response()state='incomplete'semantics (pydantic-ai Releases, Nov 27, 2026). - Confidence Note: All version numbers, Python floors, SHA-256 checksums, GHSA/CVE IDs, and breaking-change notes are verified directly from PyPI and official GitHub Releases as of November 28, 2026; PyPI itself does not publish raw weekly download counts on the project page.
Adoption Telemetry & Version Changelog
| Metric / Metadata | openai-agents (v0.26.0) |
pydantic-ai-slim (v2.77.0) |
Verified Source & Date |
|---|---|---|---|
| Latest Stable Version | 0.26.0 (GitHub-only preview: 1.0.0-alpha.2) |
2.77.0 (legacy 1.x line: 1.107.11) |
PyPI & GitHub (Nov 23–27, 2026) |
| Minimum Python Floor | Python >= 3.10 (3.10–3.14) |
Python >= 3.11 (3.11–3.15) |
PyPI Metadata (Nov 24–28, 2026) |
| License | MIT (OSI Approved :: MIT License) |
MIT (OSI Approved :: MIT License) |
PyPI Metadata (Nov 24–28, 2026) |
| Wheel / Sdist Size | 1.2 MB wheel / 7.1 MB sdist |
3.3 MB wheel / 2.9 MB sdist |
PyPI Release Files (Nov 23–27, 2026) |
| PyPI Provenance | Full GitHub Actions Trusted Publishing attestation | Full GitHub Actions Trusted Publishing attestation | PyPI Attestations (Nov 24–28, 2026) |
| GitHub Stars / Forks | Not listed on PyPI sidebar | 21,438 stars / 3,306 forks | pydantic-ai-slim PyPI (Nov 28, 2026) |
Note: Both packages ship verified PyPI Trusted Publishing attestations signed via GitHub Actions and twine/7.0.0 (openai-agents PyPI; pydantic-ai-slim PyPI).
Key Milestones in Late November 2026
openai-agents(v0.25.0→v0.26.0&v1.0.0-alpha.2): Inv0.25.0(Nov 17, 2026), OpenAI removed the betaRunloopsandbox provider, bumpedmcpto2.3.0, added concurrent Streamable HTTP requests on MCP v2, and defaultedOpenAIResponsesCompactionSessiontogpt-6-luna. Eight days later,v0.26.0touched 55 files (+4,127/−458lines) to harden Docker storage mounts, Realtime tracing opt-outs, and local image access while keepingRunStateschema1.22unchanged. In parallel,v1.0.0-alpha.2(Nov 23, 2026, distributed as GitHub-only prebuilt wheels bundling Codex Corerust-v0.166.0) introducedResumableSessionwithRedisSessionStore,ToolExecutionConfig(prepare_tool_input/prepare_tool_output),RunConfig.redact_text, andRunStateschema1.24(openai-agents Releases, Nov 24, 2026).pydantic-ai(v2.74.0→v2.77.0): Over four consecutive daily releases from November 24 to November 27, 2026, Pydantic shipped six security fixes (v2.74.0), authority-scopedRepoContext/Skills/Memoryinstruction isolation (v2.75.0),GoogleInteractionsModelandCodeMode(allow_final_output=True)(v2.76.0), and multi-backendConversationStore(SQLite, Postgres, MongoDB) pluscompact_history()capability hooks (v2.77.0) (pydantic-ai Releases, Nov 27, 2026).
Security Patches, Breaking Changes & Internals
Six Security Advisories Patched in pydantic-ai v2.74.0
Teams running pydantic-ai-harness, pydantic-ai-slim, or pydantic-evals in production should treat v2.74.0 (and v1.107.11 for pydantic-evals) as a mandatory security baseline (pydantic-ai Releases, Nov 24, 2026):
| Advisory / CVE | Severity | Affected Component | Root Cause & Fixed Version |
|---|---|---|---|
GHSA-wm3r-gc4c-q7qg (CVE-2026-136639) |
Medium | PlaywrightBrowser |
Private-address block failed to refuse IPv6 site-local fec0::/10 (pydantic-ai-harness 0.74.0) |
GHSA-p2q8-3252-77c3 (CVE-2026-136640) |
Medium | PlaywrightBrowser |
Missed NAT64-embedded cloud metadata IPv6 addresses and ISATAP private forms (0.74.0) |
GHSA-g87v-g79r-whvj (CVE-2026-136638) |
Medium | PlaywrightBrowser |
Backslash in URL query treated as hostless, bypassing allowed_domains/blocked_domains (0.74.0) |
GHSA-mj96-6529-3cpf |
Medium | PlaywrightBrowser |
Egress policy omitted WebRTC, WebTransport, WebSocketStream, and FedCM (0.74.0) |
GHSA-gm2p-369w-rcgv (CVE-2026-136642) |
Medium | ElevenLabsAgentsRealtimeModel |
OTel spans logged secret__ dynamic variables even with include_content=False (pydantic-ai-slim 2.74.0) |
GHSA-7xcv-6766-v6v5 (CVE-2026-136643) |
Medium | pydantic-evals |
Inbound OTel baggage could overwrite unset gen_ai.evaluation.result attributes (2.74.0 / 1.107.11) |
Breaking Changes in openai-agents v0.26.0
- Docker Storage Mount Restrictions (
#6189):DockerSandboxClientnow rejectsInContainerMountStrategy—including read-only mounts—during both creation and resume, and refuses to reuse privileged containers or containers with added Linux capabilities. Operators must migrate toDockerVolumeMountStrategy(or host-mountedSandboxPathGrantfor S3 Files) and start a fresh session without reusing oldRunStatesnapshots (openai-agents Releases, Nov 24, 2026). - Custom Realtime
TraceProvider:TraceProvider.is_disabled()now defaults to returningTrue. Any customTraceProviderused withRealtimeAgentmust implementis_disabled()to matchset_disabled()or server traces will silently stop. - Explicit Local Image Grants in
codex_tool(#6171): Model-supplied file paths no longer grant read access to local images; applications must pass namedimage_attachments={"diagram": "/app/diagram.png"}grants and reference"diagram"aslocal_image. - Input Guardrail & MCP Precedence Fixes: Input guardrail tripwires now halt queued function tools (
run_in_parallel=Falseruns the check before any tool starts), and MCP call metadata follows strict precedence: explicit call metadata >tool_meta_resolver> discovery defaults. Inv1.0.0-alpha.2, cancelledAgent.as_tool()calls also enforce a 250 ms cleanup deadline (#6130).
Breaking & Compatibility Changes in pydantic-ai v2.75.0–v2.77.0
SqliteSessionStoreRename &ConversationStoreBackends (#10473):SqliteConversationStoreandConversationConflictinpydantic_ai_harness.step_persistence.conversationsare renamedSqliteSessionStoreandSessionConflict(old names emitHarnessDeprecationWarning), alongside new SQLite, Postgres, and MongoDBConversationStorebackends (pydantic-ai Releases, Nov 27, 2026).- Incomplete Stream State & Compaction Events (
#14086,#11454):stream_response()now emitsstate='incomplete'on its final yield when an Anthropic, Google, or OpenAI Responses stream terminates before the provider's terminal event.AgentStreamEventalso addsCompactionStartEventandCompactionEndEvent, and compaction receipts move fromUserPromptParttoCompactionReceiptPart(#14597), which breaks exhaustiveassert_nevermatches and shifts prompt-cache prefixes once. - Authority Boundaries & Model Error Normalization:
SubAgentsskips disk agent definitions below'operator'authority (#11839),RepoContext/Skills/Memoryisolate untrusted workspace files from system instructions (#11837),ModelResponse.cost()raisesValueErrorinstead ofAssertionErrorwhen a model name is absent (#14715), andOpenAIChatModelraisesModelRequestRejectedErrorclient-side before sending tools to GPT-5.4 or GPT-5.6 models with reasoning enabled (#14887). Additionally,v2.75.0setsthinking_budget=128forthinking=Falseongemini-2.5-flashahead of its December 1, 2026 reroute togemini-3.5-flash-lite(#14414).
Updated Usage Code Snippets
from agents.extensions.experimental.codex import codex_tool
tool = codex_tool(
image_attachments={"diagram": "/app/diagram.png"},
parameter_validation_mode="json",
)
async with agent.run_stream("Summarize logs") as result:
async for response in result.stream_responses():
if response.state == "incomplete":
handle_truncated_stream(response)
Ecosystem Comparison & Upgrade Checklist
| Feature / Trade-Off | openai-agents (v0.26.0) |
pydantic-ai-slim (v2.77.0) |
|---|---|---|
| Core Design Philosophy | Lightweight handoffs, Runner, Realtime voice, and CodexProvider preview (1.0.0a2) |
Type-safe Pydantic dependency injection, capabilities, and multi-engine harness |
| MCP Integration | Built-in mcp>=2.3.0, MCP v2 concurrent Streamable HTTP, explicit metadata precedence |
mcp & mcp-tasks extras, MCPToolsetClient protocol compatible with FastMCP 3/4 |
| Sandbox & Browser Egress | UnixLocal, DockerVolumeMountStrategy, Modal, Daytona, E2B, Cloudflare, Vercel, Blaxel |
DockerContainer, Kubernetes, E2B, Daytona, Modal, Boxd, plus PlaywrightBrowser & CDPBrowser |
| Durable Execution Extras | temporal (temporalio==1.34.0), dapr, redis, sqlalchemy, mongodb, s3 |
temporal (with ExternalEventWaiter & register_workflows), dbos, prefect, Azure Durable Task |
| Dependency Footprint | openai + pydantic + httpx2 + mcp; optional extras keep base install lean |
pydantic-ai-slim modular extras; genai-prices>=0.2.4; pillow>=12.3.0 for coder |
Architecture & Tool-Execution Trade-Offs
Both SDKs converged on stronger execution boundaries in late November 2026, but they optimize for different operational patterns. openai-agents keeps its core 0.26.0 dependency graph minimal while testing v1.0.0-alpha.2's ResumableSession and ToolExecutionConfig hooks (prepare_tool_input, prepare_tool_output, and sdk_only_tool_hooks=True), which let applications intercept and redact tool calls across replacement workers without re-running prepare_tool_input after human approval (openai-agents Releases, Nov 24, 2026).
By contrast, pydantic-ai-slim v2.77.0 leans on composable harness capabilities: ToolBridge keeps prompt caches warm by hiding large or dynamic tool sets behind tool_search, tool_describe, and tool_call; ComputerUse() unifies desktop display protocols across Docker, Kubernetes, E2B, Daytona, Modal, and Boxd sandboxes; ModelRouter and StreamGuardrail add dynamic routing and streaming moderation; and SearchConversationHistory bounds query scans to max_scanned_messages so large histories cannot stall the asyncio event loop (pydantic-ai Releases, Nov 27, 2026).
Safe Upgrade & Pinning Checklist
- Pin Exact Minor Ranges First: Avoid floating
>=ranges acrossopenai-agents0.25→0.26orpydantic-ai-slim2.74→2.77if you share durableRunStateor Temporal workflows across workers; drain in-flight durable runs or use Temporal Worker Versioning before rolling out (pydantic-ai Releases, Nov 27, 2026). - Audit Docker & Browser Sandboxes: For
openai-agents 0.26.0, removeInContainerMountStrategyand migrate toDockerVolumeMountStrategy. Forpydantic-ai, upgrade to>=2.74.0immediately ifPlaywrightBrowserprocesses untrusted URLs, and note thatWebRTC,WebTransport,WebSocketStream, andFedCMare now disabled under the enforced egress policy. - Update Error Handlers & Tracing Hooks: Check
except AssertionErrorblocks aroundModelResponse.cost()andexcept ModelHTTPErrorblocks for GPT-5.4/5.6 tool-reasoning rejections inpydantic-ai 2.77.0, and implementis_disabled()on any customTraceProviderinopenai-agents 0.26.0.
Frequently Asked Questions
What are the minimum Python versions for openai-agents 0.26.0 and pydantic-ai-slim 2.77.0?
openai-agents 0.26.0 requires Python >= 3.10 (tested on 3.10–3.14), whereas pydantic-ai-slim 2.77.0 requires Python >= 3.11 (supporting 3.11–3.15) (openai-agents PyPI; pydantic-ai-slim PyPI).
Is openai-agents v1.0.0-alpha.2 available on PyPI?
No. As noted in the release notes, v1.0.0-alpha.2 is a GitHub-only preview distributed via platform-specific prebuilt wheels with embedded Codex Core rust-v0.166.0, while 0.26.0 is the latest stable release on PyPI (openai-agents Releases, Nov 24, 2026).
Which pydantic-ai version fixes the PlaywrightBrowser SSRF and egress advisories?
All four PlaywrightBrowser advisories (GHSA-wm3r-gc4c-q7qg, GHSA-p2q8-3252-77c3, GHSA-g87v-g79r-whvj, and GHSA-mj96-6529-3cpf) are fixed in pydantic-ai-harness 0.74.0, released alongside pydantic-ai 2.74.0 on November 24, 2026 (pydantic-ai Releases, Nov 24, 2026).
Why do existing Docker sessions fail after upgrading to openai-agents 0.26.0?
v0.26.0 blocks InContainerMountStrategy and refuses to resume privileged containers or containers with added capabilities; you must switch to DockerVolumeMountStrategy or host-mounted SandboxPathGrant and create a fresh session (openai-agents Releases, Nov 24, 2026).
How does pydantic-ai 2.77.0 change stream_response() behavior?
When an Anthropic, Google, or OpenAI Responses stream ends before its terminal event, the final yielded response now carries state='incomplete', so loops checking only state == 'complete' should be updated (pydantic-ai Releases, Nov 27, 2026).
Sources
- OpenAI Agents SDK GitHub Releases (Primary Changelog, Nov 24, 2026): v0.26.0, v1.0.0-alpha.2, and v0.25.0 — GitHub Releases
- PyPI —
openai-agents(Primary Registry & Provenance, Nov 23–24, 2026): openai-agents 0.26.0 — PyPI Project - Pydantic AI GitHub Releases (Primary Changelog & Security Advisories, Nov 24–27, 2026): v2.77.0, v2.76.0, v2.75.0, and v2.74.0 — GitHub Releases
- PyPI —
pydantic-ai-slim(Primary Registry & Provenance, Nov 27–28, 2026): pydantic-ai-slim 2.77.0 — PyPI Project