mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Denied-read policies previously kept explicitly approved commands within their original filesystem restrictions, preventing operations that need broader write access, such as updating Git metadata. ## What changed - Apply broader filesystem permissions after approval of explicit escalation while retaining the sandbox, denied reads, and network policy. Command allow rules alone do not widen filesystem access. - Reject escalation when the required local sandbox is unavailable or a remote exec server lacks support for preserving the restrictions. - Track escalated terminal access so subsequent `write_stdin` calls still require review when stdin approval is enabled. ## Testing Add coverage for approved and denied escalation, allow rules, remote server compatibility, and stdin approval before input delivery. Add a Windows integration test verifying that an approved `git pull` updates Git metadata while exact-path and glob-based read denials remain enforced. Serialize Windows sandbox integration tests across processes to protect shared test account credentials. GitOrigin-RevId: 5dce6d41487ee4d39bd795c8d086398ab9794d5b