Critical: Unexpected deletion/rename activity in personal folder (D:\Content) during Codex session, suggesting fail-closed path guardrails
Resolved 💬 4 comments Opened Feb 17, 2026 by RightNiceGames Closed Feb 18, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Critical: Unexpected deletion/rename activity in personal folder (D:\Content) during Codex session, need fail-closed path
guardrails
Description
On February 17, 2026 (Swedish local time), approximately 10:53-11:00, I experienced unexpected mass deletion/rename activity under
D:\Content during a Codex-assisted session. This path contains critical personal known-folder data (Desktop/Downloads/
Documents targets) and had been stable for years. I recovered files via Shadow Copies and DMDE, but this caused high-risk
data-loss impact and significant downtime.
Suggesting product-level safeguards:
- User-defined protected-path deny list (hard block on write/rename/delete/move/ACL changes), fail-closed.
- Explicit per-command confirmation for destructive operations, with exact target paths shown before execution.
- Strict fail-closed behavior when sandbox/permission state is uncertain.
- Immutable command provenance log (timestamps, command, cwd, resolved target paths) for incident auditing.
- Preflight dry-run for write operations showing planned file changes and risk level before execution.
- Safer Windows defaults, including enforceable workspace-only write mode.
This incident reduced trust in default filesystem safety behavior. I can provide timeline details and forensic evidence if
needed.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Sorry to hear you lost data. Can you provide more details about your configuration as requested in the bug report template? In particular, what codex product are you using (CLI, extension, app), which platform, which version? I'm guessing you're using Windows native (versus WSL) based on the path names. Did you have the Windows sandbox enabled? Were you running in "full access" ("yolo") mode?
@etraut-openai Thanks for the follow-up.
I did some more research as to what happened.
Here are the requested environment details for the incident window on Tuesday, February 17, 2026.
approval_policy: never,sandbox_policy: danger-full-accessin session log)yes, unfortunately in yolo mode 😅
Additional context:
_tmp_zoomunderD:\Projects\AI\workspaces\...).D:\Contentwas found in that window.D:\Contentaround 10:59:07.Because of these circumstances, I am therefore aware that it's very hard to determine if it actually was codex that was responsible for this issue, but a targeted mass deletion like this has never happened before. I mean, it could have been that I deleted these folders in some way by mistake without noticing.
I am afraid this is going to happen a lot. Situations where something bad happens and you automatically blame the AI for it. Or perhaps there was some SYMLINK created in the working folder by mistake which caused the error (I happen to have a "Make folder junction" button in Total Commander). Idk man... Luckily I managed to retrieve the files via file recovery tools.
Thank you for taking you time with this.
Attachments:
bug_report_attachments_bundle.zip
non_shell_manifest.md
non_shell_manifest.csv
manifest.md
manifest.csv
Thanks for the additional details.
We recommend against using "yolo" mode. It's designed for use in an isolated environment (VM or dev container). By default, codex provides safety mechanisms to prevent this, but when you choose "yolo" mode, you're disabling most of these safety mechanisms.