fix(external-agents): Codex write runs in a linked worktree cannot stage or commit
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- developer-experience, tooling
Research direction
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.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- Shell
- Stars
- 22
- Forks
- 2
- Avg merge
- 2h
- Merged PRs (30d)
- 960
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from melodic-software/claude-code-plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melodic-software/claude-code-plugins#19225 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
melodic-software/claude-code-plugins#17779 · 2 comments ·
Maintainers usually reply within 1 day
-
recurring
Difficulty 4/5 3-5 days Newbie friendliness 25/100
melodic-software/claude-code-plugins#19274 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
melodic-software/claude-code-plugins#19270 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 53/100
melodic-software/claude-code-plugins#19269 ·
Maintainers usually reply within 1 day
All issues in melodic-software/claude-code-plugins
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nais/attest-sign#139 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
community-scripts/core#303 ·
Maintainers usually reply within 1 day
-
severity: low
Difficulty 1/5 Under an hour Newbie friendliness 72/100
luainkernel/lunatik#2727 ·
Maintainers usually reply within 1 day
-
[quality] release publish.mjs integrity guards have no unit testPossibly taken @robarnold claimed this today. Openagent/quality stage/040-covered-by-pr testing
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
marinatedconcrete/config#1155 ·
Maintainers usually reply within 1 day
-
bug report-to-upstream
Difficulty 1/5 Under an hour Newbie friendliness 75/100
flatpark/flatpark#1585 · 1 comment ·
Maintainers usually reply within 1 day