fix(external-agents): Codex write runs in a linked worktree cannot stage or commit
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- developer-experience, tooling
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- Shell
- Estrelas
- 22
- Forks
- 2
- Merge médio
- 2h
- PRs com merge (30d)
- 960
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de melodic-software/claude-code-plugins
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
melodic-software/claude-code-plugins#19225 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
melodic-software/claude-code-plugins#17779 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
recurring
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
melodic-software/claude-code-plugins#19274 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
melodic-software/claude-code-plugins#19270 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 53/100
melodic-software/claude-code-plugins#19269 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de melodic-software/claude-code-plugins
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
CachyOS/CachyOS-Welcome#307 ·
-
Magnet links and .torrent files not opened: desktop Exec lacks %U and biglybt-runner drops argumentsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
area:linux source:reader type:enhancement
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 68/100
stephrobert/blog-roadmap#236 ·
-
[BUG][Windows] mo clean throws Int32 overflow in Developer tools when removed size exceeds 2 GiBAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nais/attest-sign#139 ·
Mantenedores costumam responder em até 1 dia