permission profiles: expose availability to clients#26678
Open
viyatb-oai wants to merge 2 commits into
Open
Conversation
Co-authored-by: Codex <noreply@openai.com>
7ef098a to
b097cab
Compare
alexc-oai
added a commit
that referenced
this pull request
Jun 5, 2026
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
alexc-oai
pushed a commit
that referenced
this pull request
Jun 5, 2026
37e7874 to
c32db16
Compare
0cf948f to
b097cab
Compare
Avoid re-deserializing unrelated config sections without their layer base paths. Co-authored-by: Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
permissionProfile/listcurrently advertises every built-in and configured profile even when effective enterprise requirements prevent selecting it. That forces each client to reconstruct policy from lower-level requirement fields, which is easy to miss and difficult to keep consistent.The catalog should remain complete so clients can explain that an option was disabled by an administrator, while also reporting whether each profile is selectable.
What
allowedfield to each permission profile summary.allowed_sandbox_modes,allowed_permissions, and filesystem restrictions.:danger-full-accessprofile ID in the TUI.Scope
This PR targets
maindirectly and is independent of #24852. It preserves the current behavior where built-in profiles are constrained by sandbox-mode requirements andallowed_permissionsapplies to configured profiles.Testing
just test -p codex-core permission_profile_catalog_marks_profiles_disallowed_by_requirementsjust test -p codex-app-server permission_profile_listjust test -p codex-app-server-protocoljust test -p codex-tui profile_permissionsjust fix -p codex-corejust fix -p codex-app-server-protocoljust fix -p codex-app-serverjust fix -p codex-tuijust fmt