Codex cannot edit a file

Resolved 💬 3 comments Opened Nov 27, 2025 by hn-yu Closed Nov 28, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.63.0

What subscription do you have?

PLUS

Which model were you using?

gpt-5.1-codex-max

What platform is your computer?

Linux 4.18.0-477.15.1.el8_8.x86_64 x86_64 x86_64

What issue are you seeing?

it just simply cannot edit any file without shell command

› Modify testfile.txt by appending one line: "modified by codex".
  Do not run any shell commands. Make a direct patch. Only touch this file.

a command like this can stuck for minutes

What steps can reproduce the bug?

Uploaded thread: 019ac51f-9156-7200-8408-23d1f09e582c

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5824
  • #6428
  • #6374
  • #7265

Powered by Codex Action

lionel-oai contributor · 9 months ago

Hi @hn-yu, thanks for filling this bug. I just tried your prompt on my sandbox git project that I use to test codex and did not encounter any issues with gpt-5.1-codex-max:

<img width="1258" height="1010" alt="Image" src="https://github.com/user-attachments/assets/86528685-090b-43b6-befc-28f17fb9f4be" />

Could you let me know which reasoning effort you are using exactly? Could you switch to gpt-5.1-codex-mini and let me know if you still see the same?

hn-yu · 9 months ago

Hi @lionel-oai

this bug is not appear with any model today, thank you