fix(source-control): parallel WorktreeCreate calls fail with 'Hook cancelled' though the worktree is created
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- git, shell
- Área
- developer-experience, tooling
Línea de trabajo
Start in the source-control plugin around the WorktreeCreate hook used when Agent isolation is "worktree". Reproduce by firing several such calls in one turn, then compare hook results with git worktree list and the external worktree root. Done means parallel creates either all succeed or a failed call leaves no locked orphan worktree on disk.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
When several Agent calls with isolation "worktree" start in parallel, the source-control plugin's WorktreeCreate hook reports "Hook cancelled", but the worktree is created on disk and locked anyway. That leaves orphan worktrees. Two were observed: each clean, at main, and locked to the session. The workaround is to create lane worktrees one at a time.
Steps to reproduce
- With the source-control plugin enabled, start several Agent calls with isolation "worktree" in the same turn so they run in parallel.
- Watch the WorktreeCreate hook result for each call.
- Run
git worktree listand check the external worktree root.
Expected
Parallel creation succeeds for every call, or a failed call leaves no worktree behind.
Actual
The hook reports "Hook cancelled" for some calls, yet the worktree exists on disk and is locked. The cancelled calls leave orphan worktrees that are clean, at main, and locked to the session.
Environment
Windows 11, Git Bash, Claude Code 2.1.289, source-control plugin WorktreeCreate hook.
- Lenguaje dominante
- Shell
- Estrellas
- 22
- Forks
- 2
- Merge medio
- 5 h 4 min
- PR fusionados (30 d)
- 825
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de melodic-software/claude-code-plugins
-
good first issue needs-triage priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
melodic-software/claude-code-plugins#6499 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-human needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
melodic-software/claude-code-plugins#6496 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue needs-triage priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
melodic-software/claude-code-plugins#6390 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue needs-triage priority: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
melodic-software/claude-code-plugins#6386 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-human needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
melodic-software/claude-code-plugins#6363 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de melodic-software/claude-code-plugins
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
collabnix/awesome-mcp-lists#179 ·
Los mantenedores suelen responder en 1 día
-
electron tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
alunduil/alunduil-chezmoi#870 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
package-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
oSoWoSo/vOid_Community_repOsitory#268 · 1 comentario ·
Los mantenedores suelen responder en 1 día