Critical Data Loss Issue in Codex App for Windows – Agent Executed File Deletion Outside Project Directory

I faced a similar issue. I used codex inside VS code with full access and the prompt I used contained the following sentences that could have caused the issue
“Clean repository packaging and ignore rules so generated/runtime junk is not part of normal source control flow.”

  1. “Part 2: Clean generated/source-control junk”
  2. “Inspect the repo and clean source-control hygiene.”
  3. “At minimum, address things like … build outputs … local storage/runtime artifacts that should not be committed”
  4. “remove generated artifacts from tracked source if they are present in the working tree”

whew! man am I glad i only had one tiny folder outside of the scope deleted. I’m surprised there’s no way to lock it in to only sending things to the recycling bin. It just defaults to permanent deletion.