mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## Why Permission grants can belong to an executor whose path convention differs from the local host, such as a Windows remote environment. Matching those grants against a host-native working directory can reject valid permissions. ## What changed - Normalize, materialize, and compare additional filesystem permissions using the selected executor's URI-based sandbox context. - Apply the same context-aware preapproval flow to `exec_command`, `apply_patch`, and extension tools. - Fail closed when symbolic temporary-directory or project-root permissions cannot be resolved from executor metadata, while accepting opaque working directory URIs when requested paths use the executor's convention. ## Testing - Added coverage for reusing a Windows permission grant from a non-Windows host, resolving symbolic temporary-directory grants, and normalizing paths with an opaque Windows working directory. GitOrigin-RevId: aee54350a25430a0443f8319e2bb0bbdc4f44282