You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support permission selector
## Problem
The Codex agent needs to support different code execution modes with varying permission levels to provide better user control over what actions the agent can perform automatically.
## Changes
- Added support for code execution modes (`default`, `acceptEdits`, `plan`, `bypassPermissions`) in the Codex agent
- Implemented automatic permission approval based on the current execution mode:
- `default`: Auto-approves read, search, fetch, and think operations
- `acceptEdits`: Additionally auto-approves edit operations
- `plan`: Same as default (read-only operations)
- `bypassPermissions`: Auto-approves all operation types
- Added `permissionMode` tracking to session state to maintain the current execution mode
- Modified `setSessionMode` to handle the mapping between ACP execution modes and Codex native modes
- Enhanced the Codex client to check tool operation kinds against the current permission mode before requesting user approval
## How did you test this?
Manual testing of each execution mode to verify that the appropriate operations are auto-approved and others still require user permission.
0 commit comments