@openai/agents-core
0.22.0 · 13 Nov 2026MIT2.7M / weekRepositoryHomepagenpmAtom feed
0.22.0 is the newest release of 0.18.x.
In short
1 new5 fixed1 internal
Release note
Key Changes
Docker file API migration
Docker file APIs now run entirely inside a running container. This changes compatibility for applications that relied on host-side file access: images need /bin/sh and GNU filesystem utilities, including realpath, and access uses the container's default user or explicit runAs. Use a compatible image and suitable file permissions. Editor updates accept source files up to 10 MiB; use execCommand for larger edits. Newly added path grants require resume or recreation before file APIs can use them.
Optional UnixLocal file protection
UnixLocalSandboxClient adds fileIOProtection: 'auto' | 'required' | 'off'. The default 'auto' selects Python-based file protection when available and otherwise retains Node filesystem behavior. Use 'required' to reject unavailable protection or 'off' to retain the Node backend. Inspect session.fileIOBackend to see the selection. This protection applies to file/editor operations and does not confine host shell commands.
Image-generation action selection
imageGenerationTool() now accepts action: 'generate' | 'edit' | 'auto' and forwards it through streaming and non-streaming Responses requests. Leaving action unspecified preserves provider defaults.
What's Changed
Support the image generation tool action option
core: Avoid redundant final computer screenshots
core: Recover deferred tools during response continuation
sandbox: Harden UnixLocal file I/O and route Docker file APIs through containers
sandbox: Preserve sandbox workdirs for shell command lists
realtime: Preserve agent_end response ownership
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.