Repository navigation
feat(api): add agent environment suspension and expiration - #4046
Conversation
Castiron-Internal-PR: openai/openai-python-internal#197 Castiron-Source-SHA: 5c4d19e0e1c30c8f245282a7819c6dfbff8597d7 Castiron-Public-Base-SHA: 1a90f1c
Castiron custom codeEvaluated main: ✅ No new custom-code files detected. 52 mixed files remain; 0 existing customizations changed; 4 generated baselines changed. Compared
48 existing customizations unchanged
8 more in the full report. A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 37984145052 --repo openai/openai-python \
--name castiron-custom-code-37984145052-1 --dir /tmp/castiron-custom-code-37984145052-1
git apply --stat /tmp/castiron-custom-code-37984145052-1/custom-code.patch
cat /tmp/castiron-custom-code-37984145052-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 1a90f1c3242307d4654924c3c088759e9655aaa3 40b7a6d4b64eb3d8d653f3395b9051f4cd1a04c4
python3 scripts/castiron/custom_code_report.py report \
--base 1a90f1c3242307d4654924c3c088759e9655aaa3 \
--head 40b7a6d4b64eb3d8d653f3395b9051f4cd1a04c4 --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-40b7a6d4b64e
cat /tmp/castiron-custom-code-40b7a6d4b64e/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
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. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Approved at 40b7a6d4b64eb3d8d653f3395b9051f4cd1a04c4.
The suspended and expired variants are wired through session states, discriminated stream and webhook unions, exports, and sync/async subscription methods. The tests cover typed SSE events in strict and loose modes and signed webhook payloads. Signature verification remains ahead of parsing.
All current public CI checks pass. This was a source and hosted-CI review; I ran no repository tests or live backend calls. Backend activation remains a separate rollout step.
Automated Release PR --- ## [3.28.0](openai/openai-python@v3.27.0...v3.28.0) (2026-10-09) ### Features * **api:** add agent environment suspension and expiration ([openai#4046](openai#4046)) ([6aa25a9](openai@6aa25a9)) ### Chores * **deps:** bump astral-sh/setup-uv from 10.1.0 to 10.2.0 ([openai#4026](openai#4026)) ([8bfffd4](openai@8bfffd4)) * **deps:** bump CodeQL init and analyze to 4.38.2 ([openai#4025](openai#4025)) ([4f5e618](openai@4f5e618)) * **deps:** update PyJWT security constraint to 2.14.0 ([openai#3991](openai#3991)) ([aaed2a7](openai@aaed2a7)) --- 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>
Summary
Adds client support for agent environment suspension and expiration events.
Changes
Validation
git diff --checkpassed.Rollout
Public SDK promotion and backend activation remain separate steps.