Codex consistently escapes its sandbox
Resolved 💬 2 comments Opened Dec 3, 2025 by dagkodingentur Closed Dec 3, 2025
What version of Codex is running?
codex-cli 0.64.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.1-codex-max xhigh
What platform is your computer?
Windows 10 x64
What issue are you seeing?
When starting the model in a directory, the model consistently exits the sandbox by jumping one directory up.
If I start it in d:\work\project and asks it about the current working directory or asks it to run 'pwd' it reports d:\work
This bug has been for the last 4-5 versions AT LEAST. Please fix it! This creates lots of problems.
The model also gets confused and makes d:\work\project\project as it gets confused about why the project directory is missing.
What steps can reproduce the bug?
Uploaded thread: 019ae44c-345f-7720-ab63-575daa389ff4
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗