@openai/agents-core
0.22.0 · 13 Nov 2026MIT2.7M / weekRepositoryHomepagenpmAtom feed
0.22.0 is the newest release of 0.19.x.
In short
2 new32 fixed3 internal
Release note
Minor Changes
Bound agent tool streaming callbacks to 1024 pending events by default, with onStreamMaxPendingEvents to adjust the limit or restore unlimited buffering with null.
Reject started checkpoints without completed initial input validation, including older snapshots without completion evidence; restart with the original input and context.
Bind resumed MCP calls to their original recipients and require a fresh run for historical pending function calls without recipient provenance.
Bind conditional tool approvals to isolated normalized execution input in core and Realtime, re-evaluate current policies on durable approval resumes, reject uncopyable normalized values before conditional approval, and preserve invalid-input handling (#1914, #1915).
Redact default function-tool and Realtime approval parse failures; require explicit invocation policy for sensitive error traces and clarify when custom errorFunction feedback applies.
Patch Changes
Add an optional rollback item budget for Responses session compaction.
Add optional page limits for automatic MCP tool listing
Preserve current permanent function approval decisions when restoring nested runs from saved state.
Honor the invoking Runner's sensitive-data tracing policy in Codex spans, including mixed CommonJS and ESM applications.
Refresh cached sandbox application tools and preserve public agent identity in tool filters.
Preserve guarded final outputs, including empty strings, in default Agent.asTool output extraction.
Apply static MCP tool filters when discovering tools without full agent and run context.
Trim local workspace logical path separators in linear time.
Handle MCP tools from one server whose names normalize to the same function tool name
Preserve post-construction agent storage settings through model requests and cloning.
Preserve multiline skill frontmatter descriptions and keep nested fields out of skill index metadata.
Withhold unvetted final assistant output from session history when output guardrails fail to complete.
Keep parent transport overrides out of agent tool runs with an explicit Model while preserving common settings and explicit child overrides.
Preserve stored history excluded from the latest successful model exchange during automatic compaction.
Respect sensitive-data trace settings for escaping tool callbacks.
Update compatible runtime and development dependencies.
Reject read-only host binds combined with privileged in-container Docker storage before provider or filesystem effects.
Reject selected handoff input filters with server-managed conversationId or previousResponseId before handoff side effects; use client-managed history or a Session without continuation options instead.
Snapshot configured tool candidates during asynchronous enablement so in-place array changes do not duplicate or skip tools.
Reject computer calls without aborting the run when onSafetyCheck explicitly returns false.
Respect sensitive tracing settings for computer safety-check callback errors and enclosing run-span error names.
Update compatible workspace dependencies while preserving supported provider and Expo versions.
Serialize hosted MCP approval tool references without live configuration.
Preserve cached MCP tools for unrelated servers with colon-suffixed names when invalidating another server's cache (#1976).
Accept deferred hosted MCP listings before tool-search results
Apply current MCP tool filters on every lookup while reusing cached tool discovery.
Allow configuring phase-two memory consolidation turns.
Compute sandbox parent paths in linear time while preserving existing path semantics.
Preserve prompt formatting when rendering large multiline skill descriptions.
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.