codex is dropping zero length .codex files in filesystems.
Resolved 💬 1 comment Opened Apr 9, 2026 by haydonryan Closed Apr 9, 2026
What version of Codex CLI is running?
codex-cli 0.118.0
What subscription do you have?
pro
Which model were you using?
various
What platform is your computer?
Linux 6.19.8-arch1-1 x86_64 unknown
What terminal emulator and version are you using (if applicable)?
ghostty
What issue are you seeing?
Codex is dropping these files everywhere, this causes issues with git becoming unclean. Instead of just making the file and not writing anything, the file should only be created if there is something _to_ write.
What steps can reproduce the bug?
run codex
run 'ls -l'
exit
2061 $ ll .codex
-r--r--r-- 1 h h 0 Apr 9 12:18 .codex
What is the expected behavior?
only create a file if you're writing something.
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗