Repository navigation
Auto-approve DangerFullAccess patches on non-sandboxed platforms - #2988
Merged
bolinfest merged 2 commits intoSep 3, 2025
Merged
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Contributor
Author
|
recheck |
This was referenced Aug 31, 2025
|
same problem, not fixed yet |
|
can someone approve this? It's making windows usage overly challenging |
Contributor
Author
|
Hi @bolinfest @nornagon-openai @pakrym-oai — friendly ping for a review/decision on this PR. Workflows are pending maintainer approval (so CI hasn’t run yet). The branch is up to date with main. If you’re not the right reviewers, could you please tag the right owner? Thanks! |
|
yes please, this issue quite challenging, the rest is great.. |
Prefer `if` in match guard instead of matches!().
bolinfest
self-requested a review
September 3, 2025 17:43
bolinfest
approved these changes
Sep 3, 2025
Collaborator
|
Thanks for this! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What?
Auto-approve patches when
SandboxPolicy::DangerFullAccessis enabled on platforms without sandbox support.Changes in
codex-rs/core/src/safety.rs: returnSafetyCheck::AutoApprove { sandbox_type: SandboxType::None }when no sandbox is available and DangerFullAccess is set.Why?
On platforms lacking sandbox support, requiring explicit user approval despite
DangerFullAccessbeing explicitly enabled adds friction without additional safety. This aligns behavior with the stated policy intent.How?
Extend
assess_patch_safetymatch:get_platform_sandbox()returnsSome, keepAutoApprove { sandbox_type }.NoneandSandboxPolicy::DangerFullAccess, returnAutoApprove { SandboxType::None }.AskUser.Tests
just fmt,just fix -p codex-core,cargo check -p codex-core.)Docs
No user-facing CLI changes. No README/help updates needed.
Risk/Impact
Reduces prompts on non-sandboxed platforms when DangerFullAccess is explicitly chosen; consistent with policy semantics.