Repository navigation
fix(server): Full access Codex no longer asks before dangerous commands - #1341
Merged
Merged
Conversation
…ds (pingdotgg#40773) (cherry picked from commit f29c824) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
5 of 8 tasks
This branch was successfully deployed
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.
Problem
Codex agents with Full access stop and ask a person before any command that contains
rm -forrm -rf. The agent waits until someone answers. On one server, all 13 Codex command approvals since Nov 27 were this, and one reviewer waited about 25 hours.Before v0.1.11, Full access sent Codex the approval policy
never, so Codex refused these commands without asking. v0.1.11 (#1205) brought in pingdotgg#37104, which sends a granular policy so browser and app prompts still work. Under that policy, Codex asks before a command it considers dangerous, even with sandbox approvals turned off.What changed
This cherry-picks upstream's fix, pingdotgg#40773 (
f29c824614c), with no J5 edits. In Full access, the Codex adapter now accepts these command approvals. It still asks about managed network access, and it does not apply when a thread sets its own approval or sandbox policy, as read-only personas do.Tradeoff: Full access Codex agents now run forced deletes with no check. Until now, Codex refused them or asked first. Jackson approved this on Dec 1, 2026 (EST).
Proof: upstream's new test fails on
j5/mainwithout the adapter change, because the adapter raises acommandrequest. It passes with the change.CodexAdapterV2.test.tspasses in full (209 tests), andvp run check:changedpasses.Live testing
Not live-tested. The adapter now sends the same
acceptreply that a person's Approve click sends, and Codex 0.172 ran the command after that reply on a live server. The tests cover when the adapter sends it.Upstream impact
All three files are upstream's, and the change is copied from upstream unedited. The next advance (v0.1.12) brings in the same change.
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsdocs/user/permission-modes.md: upstream's own note about this behaviorThere is no new FORK.md case or register entry, because J5 follows upstream here. #1150 did the same.
Checklist
FORK.md, because this is upstream's change uneditedClaude Opus 5.5 in Claude Code
🤖 Generated with Claude Code