openai-agents breaking changes
Updated December 4, 2026
On this page
Latest version 0.26.2, released December 1, 2026. Source repository
Its 0.9.0 release requires Python 3.10 or later. Python end of life dates.
openai-agents 0.26.0 breaking changes
- Removed
agents.sandbox.sandboxes.docker.FuseMountPattern
agents.sandbox.sandboxes.docker.FuseMountPattern was removed in openai-agents 0.26.0 pypi.org - Removed
agents.sandbox.sandboxes.docker.MountpointMountPattern
agents.sandbox.sandboxes.docker.MountpointMountPattern was removed in openai-agents 0.26.0 pypi.org - Removed
agents.sandbox.sandboxes.docker.RcloneMountPattern
agents.sandbox.sandboxes.docker.RcloneMountPattern was removed in openai-agents 0.26.0 pypi.org - Removed
agents.sandbox.sandboxes.docker.S3FilesMountPattern
agents.sandbox.sandboxes.docker.S3FilesMountPattern was removed in openai-agents 0.26.0 pypi.org - Removed
InContainerMountStrategy
Docker now rejects InContainerMountStrategy, including read-only mounts, during creation and resume. Switch to DockerVolumeMountStrategy and start a fresh session with the updated manifest. github.com - Behavior changed
For conflicting keys, explicit call metadata now wins over tool_meta_resolver, which wins over discovery defaults. github.com - Behavior changed
An input guardrail rejection now stops queued function tools from running. Use run_in_parallel=False to check input before any tool starts. github.com - Behavior changed
codex_tool
A model-supplied file path no longer grants access to local images in the experimental Codex tool. Grant a named reference for each trusted image and use that reference in the call. github.com - Behavior changed
TraceProvider.is_disabled
An inherited TraceProvider.is_disabled() now returns True, which stops Realtime server traces. Implement is_disabled() using the same state as set_disabled() to keep server traces. github.com - Behavior changed
UnixLocal
UnixLocal only rebases absolute links to archived regular files. Before saving, replace absolute directory or root links with safe relative links. github.com - Signature changed
agents.extensions.experimental.codex.codex_tool.codex_tool
Was def codex_tool(options: CodexToolOptions | Mapping[str, Any] | None = None, *, name: str | None = None, description: str | None = None, parameters: type[BaseModel] | None = None, output_schema: OutputSchemaDescriptor | Mapping[str... pypi.org - Signature changed
agents.extensions.experimental.codex.codex_tool.CodexToolOptions.__init__
Was def __init__(self, name: str | None = None, description: str | None = None, parameters: type[BaseModel] | None = None, output_schema: OutputSchemaDescriptor | Mapping[str, Any] | None = None, codex: Codex | None = None, codex_options... pypi.org - Signature changed
agents.extensions.experimental.codex.CodexToolOptions.__init__
Was def __init__(self, name: str | None = None, description: str | None = None, parameters: type[BaseModel] | None = None, output_schema: OutputSchemaDescriptor | Mapping[str, Any] | None = None, codex: Codex | None = None, codex_options... pypi.org
openai-agents 0.25.0 breaking changes
- Removed
agents.extensions.sandbox.runloop
The Runloop extra, its sandbox module and its exports are gone. Preserve workspace data, then move to another supported sandbox provider such as Modal; existing Runloop session IDs and snapshots cannot be resumed directly. pypi.org - Removed
agents.repl.RunResultBase
agents.repl.RunResultBase was removed in openai-agents 0.25.0 pypi.org - Removed
agents.tool_context.tool_invocation_identity
agents.tool_context.tool_invocation_identity was removed in openai-agents 0.25.0 pypi.org - Behavior changed
Agent model settings that were not set explicitly now track the selected model more closely, which can change behavior for existing code. github.com - Behavior changed
RunState
A v0.24.0 worker rejects new 1.22 checkpoints, so upgrade resume workers first. Pydantic context snapshots now include defaults; use a context_serializer for process-local fields. github.com - Default changed
Native Chat Completions tool requests for gpt-6-sol and gpt-6-luna now default to non-reasoning mode when no effort is supplied. github.com - Default changed
OpenAIResponsesCompactionSession
Sessions that leave the model unset now use gpt-6-luna instead of gpt-4.1. Set model="gpt-4.1" to keep the previous model. github.com - Configuration changed
Dependency locks pinning older pymongo versions need an upgrade. github.com - Configuration changed
The Daytona extra now requires daytona>=0.226.1,<1, so installs must refresh incompatible pins. github.com - Configuration changed
Installs must use a patched MCP version at or above 1.21.2; older pins need an upgrade. github.com
And 22 more in this version. Sign up to see every change
openai-agents 0.24.0 breaking changes
- Behavior changed
FunctionTool.mcp_annotations
Omitted MCP hints stay omitted, so consumers must apply installed MCP defaults themselves. github.com - Behavior changed
redis_session
Transactional append, clear, and replacement require a supported backend; Redis Cluster reads and pops remain available. github.com - Behavior changed
RunConfig.tool_error_formatter
The run-wide tool error formatter callback now also receives eligible decorated function failures; explicit per-tool handlers keep precedence. github.com - Behavior changed
Runner
Disabled runs emit fewer spans inside caller-owned traces, including resumed tools and streamed cleanup. github.com - Behavior changed
RunState
The reader rejects some older same-name non-root agent graphs; finish affected legacy runs on their original SDK and agent code, and use unique agent names for new durable runs. github.com - Behavior changed
ToolErrorFormatterArgs.kind
Formatters that treat every non-rejection as a missing tool can now get a crashed function's error; handle the new kind or return None to keep the default message. github.com - Configuration changed
The Temporal extra pins temporalio 1.34.0 and the Vercel extra accepts vercel-sandbox >=0.7.0,<0.9; refresh lockfiles when adopting. github.com - Signature changed
agents.agent.gather_with_cancel
Was async def gather_with_cancel(*awaitables: Awaitable[Any], on_child_failure: Callable[[], None] | None = None) -> tuple[Any, ...]; now async def gather_with_cancel(*awaitables: Awaitable[Any], on_child_failure: Callable[[BaseException]... pypi.org - Signature changed
agents.extensions.memory.RedisSession.__init__
Was def __init__(self, session_id: str, *, redis_client: Redis, key_prefix: str = 'agents:session', ttl: int | None = None, session_settings: SessionSettings | dict[str, Any] | None = None); now def __init__(self, session_id: str, *... pypi.org - Signature changed
agents.FunctionTool.__init__
Was def __init__(self, name: str, description: str, params_json_schema: dict[str, Any], on_invoke_tool: Callable[[ToolContext[Any], str], Awaitable[Any]], strict_json_schema: bool = True, is_enabled: bool |... pypi.org
And 37 more in this version. Sign up to see every change
openai-agents 0.24.0-alpha.7 breaking changes
- Renamed
approval_mode
Replace approval_mode="auto" with "native" and "approve" with "preapproved"; the old values are now rejected. github.com - Default changed
Set model_settings={"reasoning_effort": "low"} explicitly to keep the previous effort for gpt-6-astra, gpt-6.1-sol and gpt-5.6-sol. github.com - Default changed
Environment
New Environments require a compatible Linux or macOS executor; set write_policy="legacy" to keep the previous remote policy. github.com - Signature changed
ElicitationRequest
Use FormRequest.reply() or respond() for forms, and UrlRequest.reply_url_accept() or accept_url() for URL consent. github.com - Signature changed
NativeAgents.before_step
Child step callbacks now receive a single ChildStepContext instead of separate child and step-index arguments. github.com
openai-agents 0.24.0-alpha.6 breaking changes
- Removed
Use Agent.run() or Agent.run_sync() for one-shot calls instead of the removed Runner aliases. github.com - Removed
ManualTool
Declare manual tools with FunctionTool, which now covers Python callbacks and manual tools. github.com - Removed
Session.interrupt
Use Turn.cancel() for one root Turn or Session.cancel_all() for the whole Session. github.com - Removed
Session.wait
Call Turn.get_result() on the captured Turn instead of Session.wait(). github.com - Removed
Turn.wait
Call Turn.get_result() on the captured Turn instead of Turn.wait(). github.com - Renamed
Subagent.submit
Call Subagent.start() in place of Subagent.submit(). github.com - Behavior changed
Agent
Changing an Agent's defaults in place no longer works; create a new Agent instead. github.com
openai-agents 0.23.1 breaking changes
- Removed
agents.tool_context.HostedMCPApprovalKey
agents.tool_context.HostedMCPApprovalKey was removed in openai-agents 0.23.1 pypi.org - Signature changed
agents.Agent.as_tool
Was def as_tool(self, tool_name: str | None, tool_description: str | None, custom_output_extractor: Callable[[RunResult | RunResultStreaming], Awaitable[str]] | None = None, is_enabled: bool | Callable[[RunContextWrapper[Any]... pypi.org - Signature changed
agents.agent.run_producer_consumer
Was async def run_producer_consumer(producer: Awaitable[TProducer], consumer: Awaitable[TConsumer], /) -> tuple[TProducer, TConsumer]; now async def run_producer_consumer(producer: Awaitable[TProducer], consumer: Awaitable[TConsumer], /... pypi.org - Signature changed
agents.agent.ToolContext.__init__
Was def __init__(self, context: TContext, usage: Usage | object = _MISSING, tool_name: str | object = _MISSING, tool_call_id: str | object = _MISSING, tool_arguments: str | object = _MISSING, tool_call: ResponseFunctionToolCall | None =... pypi.org - Signature changed
agents.AgentHookContext.__init__
Was def __init__(self, context: TContext, usage: Usage = Usage(), turn_input: list[TResponseInputItem] = list(), _approvals: dict[str | HostedMCPApprovalKey, _ApprovalRecord] = dict(), tool_input: Any | None = None) -> None; now def... pypi.org - Signature changed
agents.extensions.experimental.codex.codex_tool.run_producer_consumer
Was async def run_producer_consumer(producer: Awaitable[TProducer], consumer: Awaitable[TConsumer], /) -> tuple[TProducer, TConsumer]; now async def run_producer_consumer(producer: Awaitable[TProducer], consumer: Awaitable[TConsumer], /... pypi.org - Signature changed
agents.extensions.memory.EncryptedSession.__init__
Was def __init__(self, session_id: str, underlying_session: SessionABC, encryption_key: str, ttl: int = 600); now def __init__(self, session_id: str, underlying_session: SessionABC, encryption_key: str, ttl: int = 600, max_scan_items: int... pypi.org - Signature changed
agents.extensions.models.any_llm_model.model_config_for_trace
Was def model_config_for_trace(model_settings: ModelSettings, *, base_url: object | None = None, extra_config: dict[str, Any] | None = None) -> dict[str, Any]; now def model_config_for_trace(model_settings: ModelSettings, tracing... pypi.org - Signature changed
agents.extensions.models.litellm_model.model_config_for_trace
Was def model_config_for_trace(model_settings: ModelSettings, *, base_url: object | None = None, extra_config: dict[str, Any] | None = None) -> dict[str, Any]; now def model_config_for_trace(model_settings: ModelSettings, tracing... pypi.org - Signature changed
agents.FunctionTool.__init__
Was def __init__(self, name: str, description: str, params_json_schema: dict[str, Any], on_invoke_tool: Callable[[ToolContext[Any], str], Awaitable[Any]], strict_json_schema: bool = True, is_enabled: bool |... pypi.org
And 28 more in this version. Sign up to see every change
Older versions
17 older versions, each with its first changes. Sign up to see every change
Show 17 older versions
openai-agents 0.23.0 breaking changes
- Behavior changed
Failure details from default tools are now redacted. Code that inspects the detailed error text may see less information. github.com - Behavior changed
Callback results for tool_use_behavior are now validated and invalid results raise errors. Callbacks returning unexpected values must be updated. github.com
And 9 more in this version.
openai-agents 0.22.3 breaking changes
- Removed
agents.realtime.session.evaluate_needs_approval_setting
agents.realtime.session.evaluate_needs_approval_setting was removed in openai-agents 0.22.3 pypi.org - Removed
agents.realtime.session.parse_function_tool_arguments
agents.realtime.session.parse_function_tool_arguments was removed in openai-agents 0.22.3 pypi.org
And 3 more in this version.
openai-agents 0.22.0 breaking changes
- Behavior changed
Terminal function-tool output rejected by agent output guardrails is now redacted from replay and persisted SDK state. Code that reads that stored output will see redacted content. github.com - Behavior changed
get_response
Non-streaming Responses with terminal status failed or incomplete now raise ModelBehaviorError instead of being returned. Code that expected those responses must handle the exception. github.com
And 2 more in this version.
openai-agents 0.21.0 breaking changes
- Removed
agents.mcp.server.HTTP_CONNECT_ERROR_TYPES
agents.mcp.server.HTTP_CONNECT_ERROR_TYPES was removed in openai-agents 0.21.0 pypi.org - Removed
agents.mcp.server.HTTP_ERROR_TYPES
agents.mcp.server.HTTP_ERROR_TYPES was removed in openai-agents 0.21.0 pypi.org
And 16 more in this version.
openai-agents 0.20.0 breaking changes
- Removed
agents.agent.consume_agent_tool_run_result
agents.agent.consume_agent_tool_run_result was removed in openai-agents 0.20.0 pypi.org - Removed
agents.agent.get_function_tool_approval_keys
agents.agent.get_function_tool_approval_keys was removed in openai-agents 0.20.0 pypi.org
And 91 more in this version.
openai-agents 0.19.0 breaking changes
- Removed
agents.extensions.sandbox.modal.sandbox.WorkspaceReadNotFoundError
agents.extensions.sandbox.modal.sandbox.WorkspaceReadNotFoundError was removed in openai-agents 0.19.0 pypi.org - Removed
agents.sandbox.sandboxes.docker.WorkspaceReadNotFoundError
agents.sandbox.sandboxes.docker.WorkspaceReadNotFoundError was removed in openai-agents 0.19.0 pypi.org
And 75 more in this version.
openai-agents 0.18.0 breaking changes
- Default changed
RealtimeAgent
RealtimeAgents now default to gpt-realtime-2.1. Set the model explicitly if your code depends on the previous default. github.com - Signature changed
agents.extensions.memory.SQLAlchemySession.__init__
Was def __init__(self, session_id: str, *, engine: AsyncEngine, create_tables: bool = False, sessions_table: str = 'agent_sessions', messages_table: str = 'agent_messages', session_settings: SessionSettings | None = None); now def... pypi.org
openai-agents 0.17.0 breaking changes
- Behavior changed
LocalDir.src
LocalDir.src is now limited to the materialization base_dir unless granted via Manifest.extra_path_grants. Apps copying trusted host directories from outside base_dir must add a grant. github.com - Behavior changed
LocalFile.src
LocalFile.src and LocalDir.src are now limited to the materialization base_dir unless granted via Manifest.extra_path_grants. Apps copying trusted host files from outside base_dir must add a grant. github.com
And 2 more in this version.
openai-agents 0.16.0 breaking changes
- Removed
agents.agent.gpt_5_reasoning_settings_required
agents.agent.gpt_5_reasoning_settings_required was removed in openai-agents 0.16.0 pypi.org - Removed
agents.agent.is_gpt_5_default
agents.agent.is_gpt_5_default was removed in openai-agents 0.16.0 pypi.org
And 26 more in this version.
openai-agents 0.15.0 breaking changes
- Behavior changed
Runner.run_sync
Refusal-only model responses no longer complete with an empty final_output; they raise ModelRefusalError. Code that expected final_output == "" must handle the error or provide a model_refusal run error handler. github.com - Signature changed
agents.run_internal.error_handlers.resolve_run_error_handler_result
Was async def resolve_run_error_handler_result(*, error_handlers: RunErrorHandlers[TContext] | None, error: MaxTurnsExceeded, context_wrapper: RunContextWrapper[TContext], run_data: RunErrorData) -> RunErrorHandlerResult | None; now async... pypi.org
And 8 more in this version.
openai-agents 0.14.0 breaking changes
- Removed
agents.extensions.experimental.codex.codex_tool.McpToolCallItem
agents.extensions.experimental.codex.codex_tool.McpToolCallItem was removed in openai-agents 0.14.0 pypi.org - Removed
agents.extensions.experimental.codex.codex_tool.ReasoningItem
agents.extensions.experimental.codex.codex_tool.ReasoningItem was removed in openai-agents 0.14.0 pypi.org
And 51 more in this version.
openai-agents 0.13.0 breaking changes
- Default changed
Code that relies on the default websocket Realtime model now gets gpt-realtime-1.5 without extra configuration. Set the model explicitly if you need the previous one. github.com - Signature changed
agents.extensions.models.litellm_model.LitellmModel.__init__
Was def __init__(self, model: str, base_url: str | None = None, api_key: str | None = None); now def __init__(self, model: str, base_url: str | None = None, api_key: str | None = None, should_replay_reasoning_content... pypi.org
And 2 more in this version.
openai-agents 0.11.0 breaking changes
- Signature changed
agents.agent.ToolContext.__init__
Was def __init__(self, context: TContext, usage: Usage | object = _MISSING, tool_name: str | object = _MISSING, tool_call_id: str | object = _MISSING, tool_arguments: str | object = _MISSING, tool_call: ResponseFunctionToolCall | None =... pypi.org - Signature changed
agents.agent.ToolContext.from_agent_context
Was @classmethod def from_agent_context(cls, context: RunContextWrapper[TContext], tool_call_id: str, tool_call: ResponseFunctionToolCall | None = None, agent: AgentBase[Any] | None = None, *, run_config: RunConfig | None = None) ->... pypi.org
And 24 more in this version.
openai-agents 0.10.0 breaking changes
- Signature changed
agents.MultiProvider.__init__
Was def __init__(self, *, provider_map: MultiProviderMap | None = None, openai_api_key: str | None = None, openai_base_url: str | None = None, openai_client: AsyncOpenAI | None = None, openai_organization: str | None = None... pypi.org - Signature changed
agents.OpenAIProvider.__init__
Was def __init__(self, *, api_key: str | None = None, base_url: str | None = None, openai_client: AsyncOpenAI | None = None, organization: str | None = None, project: str | None = None, use_responses: bool | None = None) -> None; now def... pypi.org
openai-agents 0.9.0 breaking changes
- Removed
The SDK no longer supports Python 3.9, which reached end of life. Upgrade to Python 3.10 or newer. github.com - Signature changed
agents.Agent.as_tool
The return type hint of Agent#as_tool() narrowed from Tool to FunctionTool. Code that relies on the broader Tool union type may need adjustments. pypi.org
And 3 more in this version.
openai-agents 0.8.0 breaking changes
- Removed
agents.agent.function_tool
agents.agent.function_tool was removed in openai-agents 0.8.0 pypi.org - Removed
agents.extensions.visualization.Tool
agents.extensions.visualization.Tool was removed in openai-agents 0.8.0 pypi.org
And 121 more in this version.
openai-agents 0.7.0 breaking changes
- Default changed
nest_handoff_history
Nested handoff behavior, enabled by default in v0.6.0, is now opt-in. To keep it, set nest_handoff_history to True in RunConfig. github.com - Default changed
reasoning.effort
The default reasoning.effort for gpt-5.1/5.2 is now "none" instead of "low". If you relied on "low", set it explicitly in your agent's model_settings. github.com
And 3 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.