News Developer Tools

OpenAI Agents Python v0.22.2 Adds Image Tool Options, Fixes Sandbox Bug

OpenAI agents Python v0.22.2 adds image generation tool options and fixes a UnixLocal sandbox symlink race condition.

OpenAI shipped version 0.22.2 of its openai-agents-python library, adding support for current image generation tool options and fixing a file system bug in its sandboxing feature. The update is detailed in release notes published on the project's GitHub page.

The release adds support for what OpenAI calls current image generation tool options, letting developers configure image generation calls made through agents built with the library. It also patches a security-related bug in the UnixLocal sandbox, a local execution environment the library uses to run agent code safely, that could previously let a symlink race condition occur during file operations. A symlink race happens when a program follows a file shortcut that gets swapped out before the operation completes, potentially exposing unintended files.

A separate fix addresses session handling, resetting the response chain tied to conversation compaction after items are removed from a session's history. Compaction is the process of condensing long conversation histories to save space, and the fix ensures that popping items from a session does not leave stale response data behind.

The changes are documented alongside notes on behavior updates from the prior v0.22.1 release, and the full changelog is available on GitHub comparing the two versions.

Source: Release v0.22.2 · openai/openai-agents-python · GitHub.