Back to Articles

OpenAI GPT-5.6 Sol Bug: AI Deleting Files Without Permission

August 19, 2026237

When AI Starts Deleting Files: How OpenAI Is Trying to Save Your Code (and When to Hit the Brakes)

Codex's autonomous revolution has run into an unexpected obstacle: the GPT-5.6 Sol model started deleting user files by mistake. Let's understand what happened, how OpenAI is fixing it, and what you must do to protect your development environment.

We all want our AI agents to be independent. We want to give them a task, go get a coffee, and come back when the lines of code are ready and the tests have passed. But in recent weeks, developers using OpenAI Codex have discovered that this independence comes with a dangerous price tag.

Reports from the field, including publications in TechCrunch and user reviews in the community, revealed that the newest model, GPT-5.6 Sol, deleted files and overwrote data without user approval. This was not just a small bug. It was a failure in the AI agent's basic safety mechanism.

What Really Happened There?

The main problem was discovered in the model's automatic cleanup processes. As part of its routine work, Codex is supposed to clean temporary folders to keep things tidy and efficient. But in some cases, the model identified file paths (Paths) incorrectly. Instead of deleting an unimportant temporary file, it "got confused" and reached the user's critical source files.

According to OpenAI's technical documents, the company was aware of the risk as early as June 2026, but reports of actual damage kept coming in during July as well. This is a significant vulnerability for organizations that rely on autonomous agents, because a model's ability to decide on its own to delete content is a red line from an information security standpoint.

OpenAI Tightens the Belt: These Are the New Changes

In response to these cases, OpenAI released a series of strict security updates for Codex. The goal is to return control to the developers without crippling the AI's abilities. Here are the main updates:

  1. •Sandbox hardening: The system now uses more advanced isolation mechanisms (Sandboxing), such as Landlock on Linux and Seatbelt on macOS, to make sure commands cannot "escape" the space defined for them.
  2. •Auto-review improvement: The automatic review mechanism went through a significant upgrade. It can now identify potentially destructive commands before they are executed and block them if they exceed the permissions.
  3. •Mandatory hardware authentication: Starting September 1, 2026, OpenAI requires all users of the advanced versions to adopt physical security keys (Hardware Security Keys) to prevent hostile takeover of accounts.
  4. •Preventing dangerous command execution: The latest Changelog updates show that blocks were added on running certain Git hooks and PowerShell commands that could be abused.

How to Work Correctly (and Keep Your Files Safe)

If you use Codex day to day, do not wait for the AI to make a mistake. Here are a few practical recommendations:

  • •Switch to "Ask for approval" mode: Do not give the model full permission (Full Access) by default. Use modes that require human approval for every action that changes the file system.
  • •Limit Full Access to isolated environments: If you must give the model full access, do it only inside containers (like Docker) or environments that can be restored at the push of a button in case of a catastrophe.
  • •Beware of "approval fatigue": One of the problems OpenAI identified is that developers tend to approve everything automatically so as not to interrupt their workflow. This is exactly the moment when mistakes happen. Let the Auto-review mechanism do the hard work of filtering the risks for you.

Bottom Line

We are at a stage where AI agents are turning from helper tools into real production infrastructure. The GPT-5.6 Sol case is an important reminder that even the most powerful models need a human and technological protective layer. The steps OpenAI is taking now are necessary to build long-term trust between the developer and the machine.

Want to stay up to date on everything happening in the world of AI and development? 📢 Telegram updates | 🟢 Follow on WhatsApp | 📸 Instagram

Thanks to Spotlight by Daniel Trabelsi by Daniel Trabelsi for sharing and inspiring this article.

Join the channel
#OpenAI#Artificial Intelligence#GPT-5.6#Cybersecurity#Software Development#AI Agents#Codex#Data Protection