Repository navigation
fix(server): Codex full access no longer asks before dangerous commands - #35
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Full access, Codex still sends
item/commandExecution/requestApprovalfor 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-accessand no explicitapprovalPolicyis 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:changedgreen.Done with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code