Packages

@openai/agents-openai

0.22.0 · 12 Nov 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed

Your version

0.17.1

8 Sep 2026Where it was published

0.22.0 is the newest release of 0.17.x.

In short

4 new1 faster36 fixed14 internal

Release note

What's Changed

  • Add server-wide MCP tool guardrails

  • Allow custom output guardrail blocked messages

  • sandbox: Allow labels on Docker sandbox containers

  • Support image results in web search tools

  • Enforce selected callable type alias contracts

  • Preserve serialized approval resume ownership

  • Recover failed resumed Session writes before continuing runs

  • Preserve Chat Completions tool turns during replay

  • Preserve approvals before handoffs and recover resumed writes

  • Prevent sandbox Git repository argument injection

  • Preserve tool-search attribution across agent handoffs

  • core: Honor EOF hunks for newline-terminated files

  • core: Wait for in-flight trace exports in forceFlush

  • core: Handle span processor rejections

  • core: Preserve CRLF line endings in applyDiff

  • core: Reject unsuccessful OpenAI Responses terminal states

  • core: Detach aggregated usage records

  • core: Preserve handoff callback errors

  • core: Isolate cached MCP tool definitions

  • core: Deduplicate MCP server lifecycle ownership

  • core: Strip created_by from RunItem replay

  • openai: Reject truncated empty Chat Completions

  • openai: Honor provider client options over defaults

  • openai: Preserve empty hosted MCP outputs

  • openai: Restrict redacted response IDs to official endpoints

  • openai: Preserve response span data on early stream close

  • openai: Reset compaction state on clear

  • openai: Keep Conversations history limits local

  • realtime: Safely serialize guardrail feedback details

  • extensions: Decode PTY output incrementally

  • openai: Reset compaction state after pop

  • Preserve deferred tool identity across approval checkpoints

  • sessions: Preserve concurrent writes during automatic compaction

  • sandbox: Settle PTY output before cleanup

  • sandbox: Await PTY startup cleanup

  • realtime: Warn instead of silently dropping MCP items in resetHistory

Documentation & Other Changes

  • Route executable docs and contract changes to existing checks

  • Pin LF line endings so Windows clones keep fixture hashes

  • Make test scripts work on Windows

  • Enforce selected object property API contracts

  • Reduce Vitest global setup dependency loading

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.