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

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 ↗

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