Skip to content

Add request permissions tool#13092

Merged
dylan-hurd-oai merged 12 commits intomainfrom
dev/mousseau/app-server-permissions
Mar 9, 2026
Merged

Add request permissions tool#13092
dylan-hurd-oai merged 12 commits intomainfrom
dev/mousseau/app-server-permissions

Conversation

@mousseau-oai
Copy link
Contributor

Adds a built-in request_permissions tool and wires it through the Codex core, protocol, and app-server layers so a running turn can ask the client for additional permissions instead of relying on a static session policy.

The new flow emits a RequestPermissions event from core, tracks the pending request by call ID, forwards it through app-server v2 as an item/permissions/requestApproval request, and resumes the tool call once the client returns an approved subset of the requested permission profile.

@mousseau-oai mousseau-oai force-pushed the dev/mousseau/app-server-permissions branch from 4fbb6d0 to 22730c4 Compare March 3, 2026 01:44
@etraut-openai etraut-openai added the oai PRs contributed by OpenAI employees label Mar 5, 2026
@mousseau-oai mousseau-oai force-pushed the dev/mousseau/app-server-permissions branch from 22730c4 to d5aab71 Compare March 6, 2026 21:58
Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some non-blocking comments, would be great to clean these up but excited to get this in!

@mousseau-oai mousseau-oai force-pushed the dev/mousseau/app-server-permissions branch from d5aab71 to bd80d69 Compare March 7, 2026 22:51
@mousseau-oai
Copy link
Contributor Author

Introduced new GrantedPermissionProfile type for use on the request permissions response.

@mousseau-oai mousseau-oai force-pushed the dev/mousseau/app-server-permissions branch from 074865d to 8ed80f3 Compare March 9, 2026 01:19
@dylan-hurd-oai dylan-hurd-oai merged commit e6b9384 into main Mar 9, 2026
47 of 57 checks passed
@dylan-hurd-oai dylan-hurd-oai deleted the dev/mousseau/app-server-permissions branch March 9, 2026 03:23
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants