Codex reading an old version of a file

Resolved 💬 2 comments Opened Sep 20, 2025 by Mac-V-Sog Closed Nov 11, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.34.0

Which model were you using?

GPT 5 Codex

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

Codex appears to be unable to correctly read a file after making a manual edit and saving.

Make a manual edit in any file that was generated by codex and ctrl+s to save the file. Ask codex via chat (Vs Code extension) to then review that file for the new change, it does not spot the change. Refer to screenshots below.

<img width="474" height="534" alt="Image" src="https://github.com/user-attachments/assets/21cd17e9-e9a3-427e-bf16-ab5bb9e268b3" />

<img width="838" height="259" alt="Image" src="https://github.com/user-attachments/assets/e5b080cc-b1f0-442a-a782-5277c61e85ec" />

What is the expected behavior?

That codex is able to correctly read a file when I ask it to in the chat. Auto context is selected.

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

RyotaUshio · 10 months ago

I am experiencing the exact same issue on macOS (VSCode extension version 0.4.19).

  • Version: codex-cli 0.45.0
  • Model: gpt-5 and gpt-5-codex (high)
  • Platform: Darwin 24.5.0 arm64 arm
etraut-openai contributor · 9 months ago

Thanks for the bug report. We've shared the feedback with the team members who are responsible for training our codex models. We're tracking this feedback and similar reports so we can make the model more robust in future iterations.

If you see other model behavior that you'd like to report, please use the recently-added /feedback command in the CLI. That will provide us with additional details including logs and conversation text.