Codex does not read code files
What version of Codex is running?
codex-cli 0.25.0
Which model were you using?
gpt-5
What platform is your computer?
Darwin 24.5.0 arm64 arm
What steps can reproduce the bug?
I started writing a script on my own and asked codex to check it for bugs. Codex opened the file once, but after that it did not read the file again, even after being told explicitly to read the file, it failed to do so.
<img width="974" height="179" alt="Image" src="https://github.com/user-attachments/assets/86b9ab7d-5e5c-4dec-97ef-c84ced846263" />
<img width="967" height="294" alt="Image" src="https://github.com/user-attachments/assets/f346831a-3e91-49df-b7d1-1fc198e693d7" />
<img width="967" height="144" alt="Image" src="https://github.com/user-attachments/assets/657c0db9-ff94-45c3-b60f-9a5226e4736d" />
What is the expected behavior?
Codex re-reads the file on request, or better on change. Maybe the info about the file being modified since last read is included in the context for the next request.
What do you see instead?
Old version of the file in the context and hallucinations
Additional information
/status
📂 Workspace
• Path: ~/trash/rps
• Approval Mode: on-request
• Sandbox: read-only
• AGENTS files: (none)
👤 Account
• Signed in with ChatGPT
• Login: <REDACTED>
• Plan: Plus
🧠 Model
• Name: gpt-5
• Provider: OpenAI
• Reasoning Effort: Medium
• Reasoning Summaries: Auto
📊 Token Usage
• Session ID: 47e36183-b240-4229-82aa-0debeeb2e48f
• Input: 30070 (+ 359424 cached)
• Output: 28933
• Total: 59003
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗