Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

fix(source-control): parallel WorktreeCreate calls fail with 'Hook cancelled' though the worktree is created

Abierto
#6,327 1 comentario 0 reacciones 0 asignados Ver en GitHub

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

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

needs-triage priority: medium

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

  1. With the source-control plugin enabled, start several Agent calls with isolation "worktree" in the same turn so they run in parallel.
  2. Watch the WorktreeCreate hook result for each call.
  3. Run git worktree list and 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de melodic-software/claude-code-plugins

Todos los issues de melodic-software/claude-code-plugins

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.