Skip to content

feat(api): support cyber access programs on agent sessions - #4378

Open
markstuart-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-477
Open

markstuart-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-477

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Summary

Set the cyber access program when creating or updating an agent session with the sync or async client.

Changes

  • Pass access_programs to sessions.create() and sessions.update().
  • On update, omit access_programs or pass {} with another change to keep the selection. Pass None or {"cyber": None} to restore the model default.
  • Read the explicit selection with session_cyber_access_program(session) from openai.lib.beta.agents. Existing dictionaries and omitted fields are preserved.

Castiron-Internal-PR: openai/openai-python-internal#477
Castiron-Source-SHA: c25dc8a6aa18c2d555715947c6592a8be5859eb8
Castiron-Public-Base-SHA: 3098933
@markstuart-oai
markstuart-oai requested a review from a team as a code owner December 6, 2026 00:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T00:26:54.470893Z dedd8ad PR opened
🔒 Security Review ✅ Completed 2026-12-06T00:27:45.946339Z dedd8ad PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants