Skip to content

[6/6] Default Python SDK approval policy to never#21910

Open
aibrahim-oai wants to merge 2 commits intocodex/python-sdk-package-renamefrom
codex/python-sdk-approval-never
Open

[6/6] Default Python SDK approval policy to never#21910
aibrahim-oai wants to merge 2 commits intocodex/python-sdk-package-renamefrom
codex/python-sdk-approval-never

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented May 9, 2026

Summary

  • Force SDK thread and turn starts to serialize AskForApproval.never until SDK approval request handling exists.
  • Add generated AskForApproval aliases such as AskForApproval.never and keep the generator preserving them.
  • Update examples/docs and add sync + async coverage for the forced approval policy.

Stack

This PR is the sixth change in the stack, on top of #21905.

Verification

  • PYTHONPATH=sdk/python/src python3 -c ... for AskForApproval.never serialization
  • python3 -m py_compile ... on changed Python files
  • git diff --check
  • Local pytest not run per repo guidance; CI should cover it.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
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.

1 participant