Unable to use git even with workspace-write
Resolved 💬 5 comments Opened Oct 10, 2025 by gcp Closed Oct 10, 2025
What version of Codex is running?
codex-cli 0.46.0
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 25.0.0 arm64 arm
What steps can reproduce the bug?
codex -s workspace-write
› Move the last 2 commits to a branch called "codex-rackleave".
• Explored
└ List heads
• Ran git branch --show-current
└ master
• Ran git checkout codex-rackleave
└ failed in sandbox: fatal: Unable to create '/Users/morbo/git/scrax/.git/index.lock': Operation not permitted
• I'm exploring why git can't create the index.lock file, likely due to system-level restrictions such as immutable flags or
extended attributes on the .git directory or its files, which blocks changing branches or modifying the index. I'll check
further with xattr -l .git to see if any attributes prevent write operations despite chmod changes.
And so on, while the model tries to debug why it can't write things.
What is the expected behavior?
Writing to .git should work.
What do you see instead?
_No response_
Additional information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗