You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im hoping it would be addressed by something like #378 but this is a new path, not /var/tmp...
can you install version 0.1.2504172351 ala npm i @openai/[email protected] and see if it reproduces?
Well that build does have a crash, so first make sure you do
mkdir -p ~/.pyenv then run codex
if that version doesnt work, can you pass in /tmp as a writeable root to codex? codex -w /tmp
You are correct it is sandboxing, which you can see the policies here:
I am using codex 0.1.2505140839 on OSX and I am getting the same error even when using codex -w /tmp.
It is 100% repeatable when doing a git commit.
Is there a solution for this yet? Let me know if you need more logs or for me to try other steps.
git: warning: confstr() failed with code 5: couldn't get path of DARWIN_USER_TEMP_DIR; using /tmp instead
git: error: couldn't create cache file '/tmp/xcrun_db-SjDk74mv' (errno=Operation not permitted)
git: warning: confstr() failed with code 5: couldn't get path of DARWIN_USER_TEMP_DIR; using /tmp instead
git: error: couldn't create cache file '/tmp/xcrun_db-y2HLPe7e' (errno=Operation not permitted)
I am still getting an error on the latest version when I launch codex with --approval-mode=full-auto (see the error below). But strangely enough it works as expected if I do not set the approval mode and just manually approve the command.
user
commit the change to the go.mod file to git
command
$ git add go.mod && git commit -m "Update go directive to v1.24.2 in go.mod"
command.stdout (code: 128, duration: 0.1s)
git: warning: confstr() failed with code 5: couldn't get path of DARWIN_USER_TEMP_DIR; using /tmp instead
git: error: couldn't create cache file '/tmp/xcrun_db-MEmYhXZD' (errno=Operation not permitted)
git: warning: confstr() failed with code 5: couldn't get path of DARWIN_USER_TEMP_DIR; using /tmp instead
git: error: couldn't create cache file '/tmp/xcrun_db-rOPeCCsT' (errno=Operation not permitted)
... (7 more lines)
command
$ export TMPDIR=$(pwd) && git add go.mod && git commit -m "Update go directive to v1.24.2 in go.mod"
command.stdout (code: 128, duration: 0.1s)
error: No user exists for uid 501?
fatal: failed to write commit object
Same here. Because there is no way to disable sandbox, I solved this by clone this repo and eliminated sandbox in handle-exec-command.ts. Then installed this local package. Works like a charm.
Thank you for the feedback! Please try again on the latest version of Codex CLI, as we've been addressing sandboxing and related issues. If the problem persists, feel free to reach out again.
Activity
jonchurch commentedon Apr 19, 2025
Related to #207
Im hoping it would be addressed by something like #378 but this is a new path, not
/var/tmp...can you install version
0.1.2504172351alanpm i @openai/[email protected]and see if it reproduces?Well that build does have a crash, so first make sure you do
mkdir -p ~/.pyenvthen run codexif that version doesnt work, can you pass in
/tmpas a writeable root to codex?codex -w /tmpYou are correct it is sandboxing, which you can see the policies here:
codex/codex-cli/src/utils/agent/sandbox/macos-seatbelt.ts
Line 17 in c40f489
lukemauldinks commentedon May 16, 2025
I am using codex 0.1.2505140839 on OSX and I am getting the same error even when using
codex -w /tmp.It is 100% repeatable when doing a
git commit.Is there a solution for this yet? Let me know if you need more logs or for me to try other steps.
kalifg commentedon May 20, 2025
I just installed
codexyesterday and I'm having the same issueDamecek commentedon May 21, 2025
same issue here
macos 15.4.1 (24E263)
Damecek commentedon May 21, 2025
updated to
v0.1.2505172129and looks like error is gonelukemauldinks commentedon May 21, 2025
I am still getting an error on the latest version when I launch codex with
--approval-mode=full-auto(see the error below). But strangely enough it works as expected if I do not set the approval mode and just manually approve the command.Damecek commentedon May 23, 2025
managed to capture fail and success in single thread
looks like when
--no-verifyflag is used, the error won't triggerwestito commentedon May 29, 2025
Same here. Because there is no way to disable sandbox, I solved this by clone this repo and eliminated sandbox in
handle-exec-command.ts. Then installed this local package. Works like a charm.Damecek commentedon Jun 17, 2025
this has been fixed for me, on version
codex-cli 0.0.2505291458codex-maintainers commentedon Aug 7, 2025
Thank you for the feedback! Please try again on the latest version of Codex CLI, as we've been addressing sandboxing and related issues. If the problem persists, feel free to reach out again.
docs: recover page-session persistence and transaction order (openai#191