anthropics / anthropics/claude-code

[Bug] File write restrictions inconsistently applied to Git-related filenames outside .git directory

未关闭
#93,391 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:sandbox bug platform:macos
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

**Bug Description**
writing to files named `config`, `HEAD`, etc. that are relevant to Git gets blocked in a sandbox but not in the `.git` folder but actually in the sandbox root

**Environment Info**
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.236
- Feedback ID: 0a1405cc-009c-4dfa-b9e3-6bd77d58e865

**Errors**
```json
[]
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reproducing the behavior on darwin with version 2.1.236, comparing writes to Git-related filenames in the sandbox root with equivalent writes inside the .git directory. Trace the sandbox file-write restriction entry point once the differing paths are identified. Done means the restriction is applied consistently to the described filenames and the regression is covered by a reproducible test.

由索引模型根据 Issue 内容生成。

评估

技术栈
git
领域
security
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。