fatal: Unable to create '.git/index.lock': Permission denied, has full permissions
What version of Codex CLI is running?
0.124.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.5 high
What platform is your computer?
win11 x64
What terminal emulator and version are you using (if applicable)?
ps7.x
What issue are you seeing?
Codex is completely unable to use gh or git.
With default permissions, commands that do not require permissions to run do not work. Commands that ask for permissions work.
With full permissions, virtually nothing at all works. After going to great lengths to re-feed it my gh auth token, it's still unable to use git, running in circles about ACLs and sandbox permissions and writing increasingly convoluted scripts to try and simply check files in.
<img width="816" height="486" alt="Image" src="https://github.com/user-attachments/assets/495e5e7e-8286-4b84-90fd-7f129134cc43" />
What steps can reproduce the bug?
Use codex
What is the expected behavior?
It can use git
Additional information
_"Victory comes from finding opportunities in problems." - Sun Tzu_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗