GPT-5.6 Codex Accidental File Deletion Bug
Simon Willison · rss · 2026-07-17
Thibault Sottiaux explains a GPT-5.6 / Codex accidental file deletion issue they investigated:
- It primarily occurs when Full access mode is enabled and there are no sandboxing protections
- It is more easily triggered when auto review is not enabled
- The model attempts to rewrite the $HOME environment variable to create a temporary directory
- During execution, the model may accidentally delete $HOME itself, resulting in file loss
Simon Willison considers this a rather severe Codex bug, demonstrating that coding agents in high-privilege environments can still cause destructive consequences due to execution errors.
More from coding & agent
- A better path to agent autonomy is running waves, finding friction, and iterating — JnBrymn · 2026-07-22
- Coding agents are heading toward an AI-writes, AI-reviews, human-approves workflow — aftahi_ai · 2026-07-22
- oMLX 0.5.2 adds Mac menu-bar stats, low-bit decode kernels, and faster downloads — awnihannun · 2026-07-22
- GitHub review bot hits its PR limit and forces a 39-minute cooldown — DanielLockyer · 2026-07-22
- Max reasoning effort appears to be mobile-only in Codex Remote, not desktop — GabGarrett · 2026-07-22
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22