fix(external-agents): Codex write runs in a linked worktree cannot stage or commit
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
Start with the plugins/external-agents/ command and Codex adapter, then trace how write runs set --add-dir and classify refusals as blocked-by-mode. Check how Git reports the linked worktree git directory and where uv's cache path is configured. Done means a test or recorded run shows a linked worktree can stage and commit, and cache write refusals no longer misreport a completed run.
由索引模型根据 Issue 内容生成。
描述
Context
During the #19004 build, every external-agents run codex --use task --mode write --add-dir <worktree> run (4 of 4) was recorded blocked-by-mode. Codex's workspace-write sandbox mounted the linked worktree's git metadata read-only, so git add failed with exit 128 (index.lock could not be created), and uvx with the default cache was refused. The edits themselves landed each time, so the orchestrator had to verify, stage and commit every change by hand, and the run status misreported finished work as blocked.
A linked worktree keeps its index under the main checkout's .git/worktrees/<name>/, which is outside the --add-dir path.
Proposed work
- On a write run whose
--add-dir(or cwd) is a linked git worktree, also pass that worktree's git dir (git -C <wt> rev-parse --git-dir, plus the common dir's object store if commits need it) as a writable directory, or document that write runs leave staging and commits to the caller. - Give the run a writable uv/pip cache path, or document the expected
UV_CACHE_DIR.
Acceptance criteria
- A Codex write run in a linked worktree can
git addandgit commit, shown by a test or a recorded live run. - A run whose only refusals were cache writes it worked around is not reported as
blocked-by-mode, or the docs say why it is.
References
plugins/external-agents/(theexternal-agents runcommand and its codex adapter)- https://github.com/melodic-software/claude-code-plugins/pull/19004 (jobs 20261125T033605Z-8e98d1, 20261125T035909Z-d15bda, 20261125T043126Z-6700b5, 20261125T044004Z-f97a67)
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 2 小时
- 30 天内合并 PR
- 960
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
melodic-software/claude-code-plugins#19225 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
melodic-software/claude-code-plugins#17779 · 2 条评论 ·
维护者通常 1 天内回复
-
recurring
难度 4/5 3-5 天 新手友好度 25/100
melodic-software/claude-code-plugins#19274 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
melodic-software/claude-code-plugins#19270 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 53/100
melodic-software/claude-code-plugins#19269 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
nais/attest-sign#139 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
community-scripts/core#303 ·
维护者通常 1 天内回复
-
severity: low
难度 1/5 1 小时以内 新手友好度 72/100
luainkernel/lunatik#2727 ·
维护者通常 1 天内回复
-
[quality] release publish.mjs integrity guards have no unit test可能已有人在做 @robarnold 今天认领。 未关闭agent/quality stage/040-covered-by-pr testing
难度 2/5 1-3 小时 新手友好度 75/100
marinatedconcrete/config#1155 ·
维护者通常 1 天内回复
-
bug report-to-upstream
难度 1/5 1 小时以内 新手友好度 75/100
flatpark/flatpark#1585 · 1 条评论 ·
维护者通常 1 天内回复