mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Resolve the invoking Windows account through the OS instead of relying on USERNAME, which sandbox launchers may omit. Repair missing read/execute access on existing runtime files and directories during sandbox refresh. Preserve explicit and inherited deny permissions, skip reparse paths, and tolerate entries removed during traversal. Add Windows regression coverage for descendant permissions, repeated repair, deny preservation, and absence of newly granted write, delete, or ACL-management rights.