Deleted/Reset File With Uncomitted Changes w/o Backup, Unable to Restore

Resolved 💬 2 comments Opened Oct 29, 2025 by gobigorange Closed Nov 11, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.50.0

What subscription do you have?

Pro

Which model were you using?

gpt-5-codex

What platform is your computer?

ubuntu 24

What issue are you seeing?

Codex had difficulty applying a patch, so it overwrote the locally changed file with the last commit's version WITHOUT asking first. All local changes were gone, no backup, nothing. Lost a full day's worth of work.

What steps can reproduce the bug?

Uploaded thread: 019a2df9-22d5-7ff1-bb48-408e4ba1030c

What is the expected behavior?

Should never just overwrite a local file completely w/o backup or consent.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 10 months ago

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

  • #5807
  • #5483
  • #5154

Powered by Codex Action

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.