mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
## Why When a workspace has an unreadable ancestor, PowerShell can start with `$PWD` unset and its filesystem drive at the root, breaking relative paths. ## What changed Prefix PowerShell commands in the MXC sandbox with a guarded workaround that restores the location from the process working directory when `$PWD` is unset. Preserve locations already initialized by startup or a profile. ## Testing Extend the MXC PowerShell integration test to cover an unreadable ancestor, checking that `$PWD` matches the process working directory, relative file access works, and the parent and sibling file remain inaccessible. GitOrigin-RevId: 4fb067db52a7f3c6e819169016fe6bd104a277a1