Codex CLI can't access any file

Resolved 💬 6 comments Opened Sep 11, 2025 by MartinKnopf Closed Sep 15, 2025

What version of Codex is running?

codex-cli 0.34.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 x86_64 i386

What steps can reproduce the bug?

  1. Install codex cli: npm i -g @openai/codex
  2. Login with ChatGPT subscription
  3. Create dummy README.md: echo "# Test" > README.md
  4. List directory contents:

<img width="420" height="100" alt="Image" src="https://github.com/user-attachments/assets/d51dbf45-698c-4976-b912-10a0a7aa109b" />

  1. Let codex summarize the file: codex --yolo "summarize README.md"

What is the expected behavior?

A summary of the file.

What do you see instead?

<img width="674" height="350" alt="Image" src="https://github.com/user-attachments/assets/455b1ad8-d40c-4b1b-b2d4-2dfd0f0821c0" />

Additional information

I already deleted ~/.codex and reinstalled codex. Codex is able to create files and in the same session can read those files. But in a new session it can't read those files again.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗