跳到正文
RadarAI· X:OpenAI Developers (@OpenAIDevs)·· 2 小时前AI 评分32

Codex 使用 Git 仓库工作区的默认权限配置说明

AI 导读

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

正文 · 原文

OpenAI Developers· @OpenAIDevs · X·2026-11-19 03:01· 37 分钟前AI 评分48

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

事件后续 · 1

查看事件全部

来源:RadarAI · aihot.news