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

Codex 以 Git 仓库为工作区时,默认权限配置允许其无需显式批准即可编辑源文件,但阻止写入根目录的 .git 和 .codex 文件夹。该配置还允许在用户现有 OS 权限范围内进行广泛的文件系统读取,使命令能访问仓库外的工具和库。每个子进程都会继承父进程的沙箱约束,且这些约束贯穿整个命令进程树,包括比原进程存活更久的后代进程。

正文

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