mirror of
https://github.com/openai/codex.git
synced 2026-10-19 16:17:49 +00:00
## Why With granular sandbox approvals disabled, `write_stdin` rejected input to terminals retaining additional permissions even when those permissions were still granted. ## What changed Let input reach approval review when the terminal's retained permissions match active grants for its environment. Require identical filesystem grants, including entry order, and an active network grant when retained permissions enable network access. Each input still requires review. Keep rejecting input when retained authority is no longer covered or the approval policy changes to `Never`. ## Testing Add regression coverage for user and Guardian review, turn grant expiry, session grants, and switching to `Never`. Cover filesystem restrictions, protected metadata, symlinks, and ordered denials, and verify that rejected input never reaches the terminal. GitOrigin-RevId: 9abf7da8d03b1526d26ca2a718e36349a255330b