跳到正文
OpenAI Developers· @OpenAIDevs · X·· 3 天前AI 评分28
AI 导读

OpenAI 演示了将 Git 仓库作为 Codex 会话工作区时的默认权限行为,允许模型直接编辑源文件并受限于操作系统权限进行广泛读取。该配置明确阻止对根目录 .git 和 .codex 文件夹的写入操作。所有子进程均继承父进程的沙箱约束,确保权限控制贯穿整个命令执行树。

正文 · 原文

When using a Git repository as the workspace for a Codex session, the default permission profile lets Codex edit source files without explicit approval, but blocks writes to the root .git and .codex folders.

This profile also allows broad filesystem reads, subject to the user’s existing OS permissions. This lets commands access tools and libraries outside the repository if needed.

Each child process inherits its parent’s sandbox constraints. These apply throughout the command’s process tree, even to descendants that outlive the original process.

来源:OpenAI Developers · x.com