Codex not asking for permissions, and failing commands instead
Resolved 💬 3 comments Opened Jan 20, 2026 by davedean Closed Jan 20, 2026
What version of Codex is running?
codex-cli 0.87.0
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Darwin 25.2.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Ghostty
What issue are you seeing?
Codex is claiming it can't run commands, and suggesting workarounds.
What steps can reproduce the bug?
› run the tests
• Ran swift test
└ warning: /Users/david/Library/
org.swift.swiftpm/configuration is not
… +109 lines
<unknown>:0: error: unable to load standard
library for target 'arm64-apple-macosx14.0'
─ Worked for 5s ───────────────────────────────────
• swift test failed because SwiftPM can’t write to
the default cache path in this sandbox. Key
error: error opening '/Users/david/.cache/clang/
ModuleCache/...': Operation not permitted,
followed by unable to load standard library.
If you want me to re-run with a writable cache
directory (e.g., in /tmp), tell me and I’ll do
it.
What is the expected behavior?
Codex should ask permission.
› run the tests
• Ran swift test
└ warning: /Users/david/Library/
org.swift.swiftpm/configuration is not
… +109 lines
<unknown>:0: error: unable to load standard
library for target 'arm64-apple-macosx14.0'
─ Worked for 5s ───────────────────────────────────
• swift test failed because SwiftPM can’t write to
the default cache path in this sandbox. Key
error: error opening '/Users/david/.cache/clang/
ModuleCache/...': Operation not permitted,
followed by unable to load standard library.
If you want me to re-run with a writable cache
directory (e.g., in /tmp), tell me and I’ll do
it.
› ask for permission this time
• Planning to rerun swift tests with escalated
sandbox permissions to allow writing to the user
cache, since the default sandbox blocks writing
to /.cache; this aligns with the user's explicit
request for permission prompting.
✔ You approved codex to run swift test this time
• Ran swift test
└ [0/1] Planning build
Building for debugging...
… +120 lines
✔ Test run with 0 tests in 0 suites passed
after 0.001 seconds.
─ Worked for 6s ───────────────────────────────────
• Tests ran successfully with escalated
permissions.
- swift test: 52 tests passed, 0 failures.
Additional information
I think this started only recently.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗