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.

By 0xScorPionSon

8 min read

openai-agents v0.26.0 vs. pydantic-ai v2.77.0: Breaking Changes, Security Fixes & Upgrade Guide

openai-agents 0.26.0 vs pydantic-ai 2.77.0 Python AI Agent SDK Architecture

Executive Summary

  • Featured Packages & Versions: openai-agents v0.26.0 (uploaded to PyPI November 23, 2026; GitHub release November 24, 2026; alongside GitHub-only preview v1.0.0-alpha.2) and pydantic-ai-slim v2.77.0 (released November 27, 2026, building on v2.74.0–v2.76.0 from 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-agents to v0.26.0 requires replacing InContainerMountStrategy in Docker sandboxes, updating custom TraceProvider.is_disabled() implementations, and passing explicit image_attachments mappings for local Codex images (openai-agents Releases, Nov 24, 2026). Upgrading pydantic-ai past v2.74.0 is mandatory for teams using PlaywrightBrowser, ElevenLabs Realtime tracing, or OpenTelemetry online evaluations due to six patched GHSA security advisories, while v2.77.0 introduces SqliteSessionStore renames and stream_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): In v0.25.0 (Nov 17, 2026), OpenAI removed the beta Runloop sandbox provider, bumped mcp to 2.3.0, added concurrent Streamable HTTP requests on MCP v2, and defaulted OpenAIResponsesCompactionSession to gpt-6-luna. Eight days later, v0.26.0 touched 55 files (+4,127/−458 lines) to harden Docker storage mounts, Realtime tracing opt-outs, and local image access while keeping RunState schema 1.22 unchanged. In parallel, v1.0.0-alpha.2 (Nov 23, 2026, distributed as GitHub-only prebuilt wheels bundling Codex Core rust-v0.166.0) introduced ResumableSession with RedisSessionStore, ToolExecutionConfig (prepare_tool_input / prepare_tool_output), RunConfig.redact_text, and RunState schema 1.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-scoped RepoContext/Skills/Memory instruction isolation (v2.75.0), GoogleInteractionsModel and CodeMode(allow_final_output=True) (v2.76.0), and multi-backend ConversationStore (SQLite, Postgres, MongoDB) plus compact_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

  1. Docker Storage Mount Restrictions (#6189): DockerSandboxClient now rejects InContainerMountStrategy—including read-only mounts—during both creation and resume, and refuses to reuse privileged containers or containers with added Linux capabilities. Operators must migrate to DockerVolumeMountStrategy (or host-mounted SandboxPathGrant for S3 Files) and start a fresh session without reusing old RunState snapshots (openai-agents Releases, Nov 24, 2026).
  2. Custom Realtime TraceProvider: TraceProvider.is_disabled() now defaults to returning True. Any custom TraceProvider used with RealtimeAgent must implement is_disabled() to match set_disabled() or server traces will silently stop.
  3. Explicit Local Image Grants in codex_tool (#6171): Model-supplied file paths no longer grant read access to local images; applications must pass named image_attachments={"diagram": "/app/diagram.png"} grants and reference "diagram" as local_image.
  4. Input Guardrail & MCP Precedence Fixes: Input guardrail tripwires now halt queued function tools (run_in_parallel=False runs the check before any tool starts), and MCP call metadata follows strict precedence: explicit call metadata > tool_meta_resolver > discovery defaults. In v1.0.0-alpha.2, cancelled Agent.as_tool() calls also enforce a 250 ms cleanup deadline (#6130).

Breaking & Compatibility Changes in pydantic-ai v2.75.0–v2.77.0

  1. SqliteSessionStore Rename & ConversationStore Backends (#10473): SqliteConversationStore and ConversationConflict in pydantic_ai_harness.step_persistence.conversations are renamed SqliteSessionStore and SessionConflict (old names emit HarnessDeprecationWarning), alongside new SQLite, Postgres, and MongoDB ConversationStore backends (pydantic-ai Releases, Nov 27, 2026).
  2. Incomplete Stream State & Compaction Events (#14086, #11454): stream_response() now emits state='incomplete' on its final yield when an Anthropic, Google, or OpenAI Responses stream terminates before the provider's terminal event. AgentStreamEvent also adds CompactionStartEvent and CompactionEndEvent, and compaction receipts move from UserPromptPart to CompactionReceiptPart (#14597), which breaks exhaustive assert_never matches and shifts prompt-cache prefixes once.
  3. Authority Boundaries & Model Error Normalization: SubAgents skips disk agent definitions below 'operator' authority (#11839), RepoContext/Skills/Memory isolate untrusted workspace files from system instructions (#11837), ModelResponse.cost() raises ValueError instead of AssertionError when a model name is absent (#14715), and OpenAIChatModel raises ModelRequestRejectedError client-side before sending tools to GPT-5.4 or GPT-5.6 models with reasoning enabled (#14887). Additionally, v2.75.0 sets thinking_budget=128 for thinking=False on gemini-2.5-flash ahead of its December 1, 2026 reroute to gemini-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

  1. Pin Exact Minor Ranges First: Avoid floating >= ranges across openai-agents 0.25→0.26 or pydantic-ai-slim 2.74→2.77 if you share durable RunState or Temporal workflows across workers; drain in-flight durable runs or use Temporal Worker Versioning before rolling out (pydantic-ai Releases, Nov 27, 2026).
  2. Audit Docker & Browser Sandboxes: For openai-agents 0.26.0, remove InContainerMountStrategy and migrate to DockerVolumeMountStrategy. For pydantic-ai, upgrade to >=2.74.0 immediately if PlaywrightBrowser processes untrusted URLs, and note that WebRTC, WebTransport, WebSocketStream, and FedCM are now disabled under the enforced egress policy.
  3. Update Error Handlers & Tracing Hooks: Check except AssertionError blocks around ModelResponse.cost() and except ModelHTTPError blocks for GPT-5.4/5.6 tool-reasoning rejections in pydantic-ai 2.77.0, and implement is_disabled() on any custom TraceProvider in openai-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

  1. OpenAI Agents SDK GitHub Releases (Primary Changelog, Nov 24, 2026): v0.26.0, v1.0.0-alpha.2, and v0.25.0 — GitHub Releases
  2. PyPI — openai-agents (Primary Registry & Provenance, Nov 23–24, 2026): openai-agents 0.26.0 — PyPI Project
  3. 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
  4. PyPI — pydantic-ai-slim (Primary Registry & Provenance, Nov 27–28, 2026): pydantic-ai-slim 2.77.0 — PyPI Project

More on Packages

Packages

Pydantic AI v2.76: Breaking Changes, 6 Security Fixes, and ComputerUse

Pydantic AI v2.74.0 through v2.76.0 (released November 24–26, 2026, ahead of v2.77.0 on PyPI on November 28) resolve six medium-severity security advisories across PlaywrightBrowser egress filtering and OpenTelemetry tracing, add native ComputerUse sandboxes, and introduce breaking changes to FileSystemToolset offsets and error handling.

9 min read

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla