Skip to content

fix(server): Codex full access no longer asks before dangerous commands - #35

Merged
diogocoutinho merged 1 commit into
mainfrom
fix/codex-full-access-approvals
Nov 21, 2026
Merged

diogocoutinho merged 1 commit into
mainfrom
fix/codex-full-access-approvals

Conversation

@diogocoutinho

Copy link
Copy Markdown
Owner

In Full access, Codex still sends item/commandExecution/requestApproval for commands it considers dangerous (rm -f, rm -rf). The adapter turned these into approval cards, so Full access threads, including unattended delegated children, stalled waiting for a click (upstream issues pingdotgg#37298, pingdotgg#39460).

The Codex adapter now accepts these requests when the runtime mode is full-access and no explicit approvalPolicy is set. An explicit approval policy still routes the request to the user, matching the Claude adapter. This is a verbatim port of upstream pingdotgg#37306 (still open upstream), so the next upstream sync resolves without conflict.

Tests: CodexAdapterV2.test.ts (209/209, includes the replay case from pingdotgg#37306), CodexReplayFixtures.integration.test.ts (26/26), vp run check:changed green.

Done with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Under the granular full-access policy Codex still sends
item/commandExecution/requestApproval for commands it deems dangerous,
which parked full-access threads on an approval card. Accept those
requests when runtimeMode is full-access and no explicit approvalPolicy
is set. Port of upstream pingdotgg#37306.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added size:XS vouch:trusted Author is trusted by repo permissions or the VOUCHED list. labels Nov 21, 2026
@diogocoutinho
diogocoutinho merged commit 713f6b3 into main Nov 21, 2026
13 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant