mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why Creating a preset from current settings only offered the model. Permission presets need to preserve the profile, approval policy, and reviewer to restore the same settings. ## What changed - Add a “Current permissions” option alongside “Current model” when creating a preset from settings. - Extend `/permissions` with `--approval-policy` and `--reviewer`, including granular policies and quoted profile names. - Share argument parsing between `/model` and `/permissions`, supporting quoted arguments and both `--setting=value` and `--setting value` forms. - Keep full-access confirmation for every reviewer and reject automatic review when unavailable. ## Testing Add parser tests, preset picker snapshots, and permission-selection tests covering complete settings restoration, invalid arguments, unavailable automatic review, and full-access confirmation. GitOrigin-RevId: f4c9c3f6e264ee8ea4c5244c79f39f2deb15b771