insight Simon Willison 2026-07-16T17:45 正文 ok 81 words

Thibault Sottiaux 详解 GPT-5.6 Codex 意外删除文件 Bug

英文标题:Quoting Thibault Sottiaux

GPT-5.6 的 Codex 功能被曝存在意外删除文件的严重缺陷。Thibault Sottiaux 解释称,这通常发生于启用完全访问模式且未使用沙箱保护、自动审查未开启时;模型尝试覆盖 $HOME 环境变量设定临时目录,却错误地删除了用户主目录。该 Bug 凸显了在未隔离环境中运行代码执行类模型的安全风险,提醒开发者务必开启防护措施。
打开原文相关 3.6 · 机会 0

中文

2026年7月16日

关于文件删除问题。我们收到了少量报告,称 GPT-5.6 意外删除了文件。

我们调查后发现,这种情况最常见于:

  • 开启了完全访问模式,并在未启用沙箱保护(包括未开启自动审核)的情况下运行 Codex
  • 模型尝试覆盖 $HOME 环境变量来定义一个临时目录
  • 模型犯了一个无心之失,错误地删除了 $HOME 目录

—— Thibault Sottiaux 阐述了这个相当棘手的 Codex Bug

English / 原文

16th July 2026

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