Repository navigation
feat(api): add prewarmed hosted environments - #4043
Conversation
Castiron-Internal-PR: openai/openai-python-internal#211 Castiron-Source-SHA: 296f4d62c520e24e7dfa9bf5bc37c0e3aba6c892 Castiron-Public-Base-SHA: 8e1fd25
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed d40267631ad9b50fe6555530cdea6ccf2ad3448b; no blocking findings. Sync and async create/list preserve beta headers, explicit idempotency headers, request fields, and cursor pagination. Session attachment carries environment_id through the existing typed request, and ready/failed webhooks use the existing signature-checked parser. Default hosted configuration and explicit desktop=false remain representable.
Hosted Python 3.10/3.14 and HTTPX2 tests, build, lint, policy, CodeQL, and Castiron checks passed; conditional jobs were skipped. Validation was source-only; I did not run repository workloads or exercise the live prewarming service. Beta access and the agents=v1 header remain required. This review does not establish server rollout or release readiness.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
OkTest Summary✅ 236/236 SDK tests passed in 7.674s for Python SDK PR #4043. Test results — 42 filesSDK merge ( |
Automated Release PR --- ## [3.27.0](openai/openai-python@v3.26.1...v3.27.0) (2026-10-09) ### Features * **api:** add prewarmed hosted environments ([openai#4043](openai#4043)) ([c511a77](openai@c511a77)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>

Prepare an OpenAI-hosted environment before creating a beta Agents session. Add environment creation and paginated listing, session attachment by environment ID, the standalone ready status, and ready/failed webhook parsing. Prewarming access and
OpenAI-Beta: agents=v1remain required.