Repository navigation
Allow dangerous-command review when sandbox approvals are disabled - #59120
Merged
copyberry[bot] merged 1 commit intoNov 3, 2026
Conversation
…59120) ## Why Setting granular `sandbox_approval` to `false` also blocked approval requests for dangerous commands such as `rm -f`, even when they requested no additional permissions. Reviewing a dangerous command should remain possible within the existing permission profile. ## What changed Allow heuristic dangerous-command approval requests with `sandbox_approval = false` when execution stays within current permissions. Do not propose reusable execution-policy amendments for these approvals, since reusable allow rules can bypass the sandbox on later calls. Keep escalation requests, explicit policy rules, and Windows execution without required sandbox protection subject to their existing approval restrictions. Clarify the meaning of `sandbox_approval` in the protocol and generated schemas. ## Testing Add coverage for POSIX and Windows approval decisions, approval and denial of deletion commands, preservation of read-only restrictions, and separate dangerous-command approval after turn-scoped or session-scoped write grants. GitOrigin-RevId: 90adc137c7b7d3f3ee68efb1f6bea531229e7834
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/90adc137c7b7d3f3ee68efb1f6bea531229e7834
branch
from
November 3, 2026 11:15
c7b0a55 to
86b2eca
Compare
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/90adc137c7b7d3f3ee68efb1f6bea531229e7834
branch
November 3, 2026 11:15
langmu900-blip
temporarily deployed
to
issue-triage
November 3, 2026 11:27 — with
GitHub Actions
Inactive
langmu900-blip
temporarily deployed
to
issue-triage
November 3, 2026 11:27 — with
GitHub Actions
Inactive
langmu900-blip
temporarily deployed
to
issue-triage
November 3, 2026 11:27 — with
GitHub Actions
Inactive
ElninoZhong
temporarily deployed
to
issue-triage
November 3, 2026 11:30 — with
GitHub Actions
Inactive
ElninoZhong
temporarily deployed
to
issue-triage
November 3, 2026 11:30 — with
GitHub Actions
Inactive
ElninoZhong
temporarily deployed
to
issue-triage
November 3, 2026 11:30 — with
GitHub Actions
Inactive
This branch was previously 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 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.
Allow dangerous-command review when sandbox approvals are disabled
Why
Setting granular
sandbox_approvaltofalsealso blocked approval requests for dangerous commands such asrm -f, even when they requested no additional permissions. Reviewing a dangerous command should remain possible within the existing permission profile.What changed
Allow heuristic dangerous-command approval requests with
sandbox_approval = falsewhen execution stays within current permissions. Do not propose reusable execution-policy amendments for these approvals, since reusable allow rules can bypass the sandbox on later calls.Keep escalation requests, explicit policy rules, and Windows execution without required sandbox protection subject to their existing approval restrictions. Clarify the meaning of
sandbox_approvalin the protocol and generated schemas.Testing
Add coverage for POSIX and Windows approval decisions, approval and denial of deletion commands, preservation of read-only restrictions, and separate dangerous-command approval after turn-scoped or session-scoped write grants.