cd /news/ai-safety/openai-fixes-codex-bug-that-deleted-… · home topics ai-safety article
[ARTICLE · art-103352] src=the-decoder.com ↗ pub= topic=ai-safety verified=true sentiment=· neutral

OpenAI fixes Codex bug that deleted real user files without permission

OpenAI has released a security update for Codex to fix a bug that caused GPT-5.6 Sol to delete real user files without permission. The root cause was a faulty delete command that could target the actual home directory when the model used system variables like $HOME for temporary folders. OpenAI has added safeguards including verifying deletion targets, creating fresh temporary folders, and stricter checks on risky delete commands.

read1 min views3 publishedAug 19, 2026
OpenAI fixes Codex bug that deleted real user files without permission
Image: The Decoder

OpenAI's Codex is no longer supposed to delete your data without asking. Several users had reported that GPT-5.6 Sol in Codex was autonomously wiping files while running. OpenAI has now shipped several safeguards in a security update.

According to OpenAI, the root cause was a command meant to clean up temporary working files that could instead nuke actual user data. This happened when the model used system variables like $HOME for temporary folders and a faulty delete command ended up pointing at the real home directory.

OpenAI has now told Codex to verify deletion targets before running them, create fresh temporary folders, and stop misusing system variables. Risky delete commands are caught by stricter checks. Full-access mode can no longer be triggered by accident. OpenAI recommends users stick with one of the sandbox modes and keep the app up to date.

AI News Without the Hype – Curated by Humans

					Subscribe to THE DECODER for ad-free reading, a weekly AI newsletter, our exclusive "AI Radar" frontier report six times a year, full archive access, and access to our comment section.				

					Subscribe now

via X

── more in #ai-safety 4 stories · sorted by recency
── more on @openai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/openai-fixes-codex-b…] indexed:0 read:1min 2026-08-19 ·