跳到正文
Simon Willison 博客· Simon Willison·· 2026-07-17AI 评分44

GPT-5.6 Codex 在特定条件下会意外删除文件

Quoting Thibault Sottiaux

AI 导读

OpenAI 调查发现,GPT-5.6 的 Codex 功能在启用完全访问模式且未开启沙箱保护(包括未启用自动审查)时,会意外删除文件。触发条件还包括模型尝试覆盖 `$HOME` 环境变量以定义临时目录,或模型误将 `$HOME` 目录删除。

正文 · 原文

Simon Willison’s Weblog

On file deletions. We’ve investigated a handful of reports where GPT-5.6 unexpectedly deleted files.

What we have found is that this most commonly occurs when:

  • Full access mode is enabled and codex is run without sandboxing protections, including without auto review being enabled
  • The model attempts to override the $HOME env var to define a temporary directory.
  • The model makes an honest mistake and mistakenly deletes $HOME instead.

— Thibault Sottiaux, describing a pretty gnarly Codex bug

来源:Simon Willison 博客 · simonwillison.net