OpenAI Agents SDK alpha.7 changes storage and write defaults

Updated November 9, 2026. OpenAI’s Agents Python SDK 0.24.0-alpha.7 adds application owned conversation storage, hosted tools and new controls over model work. Released on November 8, it is a prerelease with migration requirements. Developers testing the native runtime should check its write policy and recovery limits before reopening existing work.
The preview also retains the earlier Python runtime through agents.classic. Classic and native objects and checkpoints remain separate. This is an SDK update for developers, not a new model or a hosted Agents API launch. ByteForward reviewed the release and documentation but has not installed or tested this build.
Check write defaults before upgrading
New environments default to strict writes. The executor documentation says the working directory remains writable, while writable_roots supplies extra directories. An empty list removes extra roots but does not make the working directory read only. Strict enforcement needs a compatible Linux or macOS executor.
Existing remote workflows using the previous policy must select the legacy write policy and leave writable_roots set to None, including Windows executors. Local execution requires strict mode. These settings govern executor tools. Application Python callbacks and MCP servers retain their own permissions. A workspace rule should not be treated as a complete security boundary for every tool.
The release also changes MCP approval names from auto to native and from approve to preapproved. The old names are rejected. Native child step callbacks now receive one ChildStepContext, while root callbacks keep their signature. Bundled reasoning defaults rise from low to medium for gpt-6-astra, gpt-6.1-sol and gpt-5.6-sol unless another setting or provider metadata takes precedence.
Stored history still needs a recovery plan
CustomStorage lets an application supply the backend for root conversation history and automatic Python tool results. Its initial scope excludes environments, native tools, child agents, manual tools and generated code execution. It also cannot export or restore portable checkpoints.
When a root tool call has an unknown outcome, reopening requires explicit reconciliation. Storage does not guarantee that an external action happens exactly once. For example, if a process stops after creating a ticket but before recording the result, check the ticket service before repeating the request. That is an application design recommendation, not a test we performed.
Portable checkpoints have a separate compatibility requirement: the native Codex revision must match. Recognizing the saved JSON format is insufficient. Keep the producing SDK available while testing continuation. Legacy saved executor policies do not become strict merely because a newer build reopens them.
Hosted tools have provider requirements
Native agents can now use FileSearch, CodeInterpreter and ImageGeneration through an API key provider and a compatible standard Responses model. Responses Lite and Codex login are excluded. Restoring history does not grant tool access. The current application must declare the tools again.
For a document assistant, this makes provider choice part of the feature checklist. Confirm the required tool works with the selected model before connecting a real document collection. Also check container lifetime: closing the SDK session does not delete a provider managed Code Interpreter container.
Review hooks and budgets have different limits
The new context and completion hooks let developers transform sampled input and review a proposed answer. Changing model input leaves stored history intact. A completion hook can accept an answer, request continuation or stop it, but rejected text may already have streamed and remains in history. Review runs before output type validation.
Applications that promise to show only approved answers must therefore control their own display behavior. Adding a review callback alone does not establish that promise. Test streaming, rejected answers and validation errors as separate cases.
RunBudget can block the next root model request after an observed request, token or estimated cost limit is reached. An admitted request may exceed the token or cost threshold. Child usage is excluded, and missing usage stops further admission by default. These are useful operating limits, not hard caps on billed charges.
For a trial migration, pin the exact alpha build in an isolated project, retain the previous environment, and exercise recovery with harmless tools. Record external outcomes separately from the conversation. The earlier 0.23 series coverage below remains historical context, not a claim that its objects or saved state migrate automatically.
Earlier 0.23 series controls, reviewed October 2
OpenAI’s Agents SDK for Python has gained configurable limits for tool discovery, encrypted conversation history and memory consolidation. The 0.23.0 GitHub release also introduces an optional Docker removal service, giving developers more control over work that happens around an agent’s main task.
At the October 2 review, the package available on PyPI was 0.23.1. Its files were uploaded on October 2 at about 15.42 UTC. The feature release appeared on GitHub earlier that day. ByteForward reviewed the published code and release records but has not run the SDK.
Tool discovery can stop at a chosen limit
The new MCP listing control lets developers set a maximum number of pages fetched automatically when discovering tools or prompts. It defaults to unlimited. A final page that exactly meets the configured limit succeeds, while a response requiring another page triggers an error instead of returning an incomplete list.
This setting bounds the number of successful discovery pages, not the amount of data in each page. It also does not apply to explicit resource pagination. Applications enabling it need to handle discovery failures rather than assume every server will expose all its tools within the chosen budget.
History and memory have separate budgets
Encrypted sessions gain an optional history scan budget that limits how many stored items a history read retrieves and unwraps. It is disabled by default. Overlapping scan windows count repeated items again. If a complete result cannot be established within the budget, an error is raised instead of returning partial conversation history.
The underlying session store must honor the requested retrieval limits. The setting does not establish a limit on bytes, elapsed time or backend work, and it does not apply to removing the most recent item. Teams should test it against their own history store and conversation lengths.
A separate memory consolidation setting makes the turn limit for phase two configurable. The default remains 500 model turns, matching the previously fixed value. This phase has its own limit because the outer agent run’s turn cap does not cover it.
A turn limit measures model iterations rather than time, tokens or money. When consolidation runs out of turns, earlier tool writes can remain even though the process has not recorded a successful consolidation. A team reducing the limit should check both the failure path and any changes already made.
Docker removal protection has a narrow operating scope
The optional Docker removal service pauses container processes while host workers perform recursive removals requested through the SDK. Its documented environment is a trusted private Linux Docker host using rootful Docker 26 or later, runc and the built in seccomp profile.
Writable shared mounts and custom security profiles are outside the supported configuration. The caller must set concurrency, entry visit and CPU limits. Reaching a limit can leave a removal partially completed, while an uncertain worker failure leaves the container paused for inspection. These details make deployment compatibility and recovery procedures important parts of adopting the feature.
The practical choice is which control fits the failure a team wants to contain. A large tool directory, expensive history retrieval and runaway consolidation are different problems. Start with representative workloads, record the expected failure behavior and choose each budget separately. Small limits may stop useful work just as effectively as unwanted work.
Check the package before upgrading
The 0.23.1 release notes explain that 0.23.0 had not reached PyPI at review time and identify 0.23.1 as the intended first registry publication of the series. The patch restores release tests and readiness checks. Those notes also flag migration requirements inherited from 0.23.0, including tool parameters, restored approvals, encrypted history and voice defaults. Check the installed version and relevant migration paths before upgrading.
These changes belong to the Agents SDK. ByteForward’s earlier OpenAI Python client update covers typed results and file helpers in a separate package. Our Agents API coverage describes the hosted service’s browser control capabilities.
Hero image is original AI generated conceptual artwork created for ByteForward. The ceramic channels and adjustable gates do not depict a product interface or measured result.



