mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## Why A stored permission grant may allow access to a parent while explicitly denying a child path. A later request for that child must not be treated as already approved by the broader parent grant. ## What changed - Compare materialized permission profiles without intersecting away denied or reopened paths before deciding that a request is preapproved. - Execute preapproved commands with the stored grant itself so its denied paths remain enforced. - Fail closed when permission profiles cannot be materialized. ## Testing Added unit and integration coverage for turn and session grants across `exec_command`, `shell_command`, and `apply_patch`, including approval-disabled and `Never` approval modes. GitOrigin-RevId: 5455880328a89c7958f859c7ce87805dff9704fb