Repository navigation
Review terminal input against retained permissions - #41328
Merged
copyberry[bot] merged 1 commit intoAug 28, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why An existing terminal keeps the sandbox, network settings, and grants it had at launch. Later `write_stdin` calls must account for that retained authority, including when permissions change between turns. ## What changed - Capture each terminal's effective launch permissions and compare them with the current environment before accepting non-empty input. - Request approval when the terminal bypassed the sandbox, retains additional grants, strict auto-review is active, or its sandbox or network settings differ from the current policy. - Reject input when current denied-read or environment-owned network restrictions cannot be enforced by the existing terminal, while keeping empty polls and non-TTY interrupts available without review. - Include the effective sandbox mode and user-visible additional grants in `write_stdin` approval actions without exposing host-owned grant paths. ## Testing Added unit and end-to-end coverage for retained cross-turn grants, strict auto-review, sandbox and network policy changes, denied reads, Windows sandbox backends, and private grant redaction. GitOrigin-RevId: e2d71daf9358474c885998786c4928069100711c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/e2d71daf9358474c885998786c4928069100711c
branch
from
August 28, 2026 11:38
a503de3 to
5eea8d0
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/e2d71daf9358474c885998786c4928069100711c
branch
August 28, 2026 11:39
liangshuo1016
temporarily deployed
to
issue-triage
August 28, 2026 12:15 — with
GitHub Actions
Inactive
liangshuo1016
temporarily deployed
to
issue-triage
August 28, 2026 12:15 — with
GitHub Actions
Inactive
liangshuo1016
temporarily deployed
to
issue-triage
August 28, 2026 12:15 — with
GitHub Actions
Inactive
liangshuo1016
temporarily deployed
to
issue-triage
August 28, 2026 12:16 — with
GitHub Actions
Inactive
motion-bot-byte
temporarily deployed
to
issue-triage
August 28, 2026 12:22 — with
GitHub Actions
Inactive
motion-bot-byte
temporarily deployed
to
issue-triage
August 28, 2026 12:22 — with
GitHub Actions
Inactive
motion-bot-byte
temporarily deployed
to
issue-triage
August 28, 2026 12:22 — 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.
Review terminal input against retained permissions
Why
An existing terminal keeps the sandbox, network settings, and grants it had at launch. Later
write_stdincalls must account for that retained authority, including when permissions change between turns.What changed
write_stdinapproval actions without exposing host-owned grant paths.Testing
Added unit and end-to-end coverage for retained cross-turn grants, strict auto-review, sandbox and network policy changes, denied reads, Windows sandbox backends, and private grant redaction.