Setting for where task worktrees are created (e.g. a sibling folder instead of .worktrees/ inside the repo)
Los mantenedores suelen responder en 4 días
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- docker, electron, git, typescript
- Área
- developer-experience, tooling
Línea de trabajo
Start in electron/ipc/git.ts at worktreePathFor, then trace how project settings are stored and how new task worktrees are created. Review coverage.ts, BranchPrefixField, and mergeTask for the stated .worktrees assumptions. Before implementation, resolve the scope questions about app-wide defaults, coordinator sub-tasks, and Arena and document-run worktrees; done means the setting is validated and new tasks use it while existing task paths remain intact.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Task worktrees always go to <repo>/.worktrees/<branch> (worktreePathFor in electron/ipc/git.ts). The .git/info/exclude entry keeps them out of git status, but plenty of tools walk the directory tree without reading git's exclude file, so every task's files show up again in the main checkout:
- Jest's haste map crawls them, and the duplicate
package.jsonnames fail with "Haste module naming collision" tscwithout anincludecompiles every.tsfile under the project folder, worktrees includedeslint .lints them, since flat config only ignoresnode_modulesand.gitby defaultdocker build .sends them in the build context unless.dockerignorelists them- dev-server file watchers running in the main checkout watch every task's files too
A configurable location is a common ask upstream as well: anthropics/claude-code#27282 (sibling folder, 72 👍) and openai/codex#10599 (configurable root, 77 👍).
Proposal
An optional per-project "Worktree folder" setting next to the branch prefix. Empty keeps today's behavior, so nothing changes unless you set it.
- New tasks go to
<folder>/<branch>. Existing tasks keep their savedworktreePath, and merge and delete already use it. - Stored in app state with the other project settings, not in a repo file (same reasoning as #231).
- Validated in the main process: absolute after
~expansion, not the repo root, not inside.git, created if missing. A folder inside the repo gets its own.git/info/excludeentry, the way.worktrees/does now. - Regular Docker tasks only mount the worktree itself, so they aren't affected by where it lives. The parent-folder mount (
dockerMountWorktreeParent) is only set for Docker coordinator tasks and the tasks they coordinate. - I'd also fix the few places that assume
.worktrees: the repo-name guess incoverage.ts, the path preview inBranchPrefixField, and the fallback path inmergeTask.
Questions before I start
- Per-project only, or also an app-wide default in Settings (e.g.
~/worktrees/{project})? - MCP coordinator sub-tasks are created in the main process with a hardcoded
taskprefix, so they already ignore project settings. Leave them in.worktrees/, or pass the folder through coordinator registration? This matters for Docker too: a Docker coordinator whose own worktree is in a custom folder wouldn't have its.worktrees/task/sub-tasks in that parent-folder mount. - Arena and document-run worktrees: keep them in
.worktrees/?
Happy to send a PR if this direction works for you.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1k
- Forks
- 144
- Merge medio
- 4 d 19 h
- PR fusionados (30 d)
- 28
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 johannesjo/parallel-code
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
johannesjo/parallel-code#385 ·
Los mantenedores suelen responder en 4 días
-
Option to show usage as used instead of left, and potential further customization ideasPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
johannesjo/parallel-code#353 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
johannesjo/parallel-code#163 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
johannesjo/parallel-code#375 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
Package as a PlatpakAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
johannesjo/parallel-code#374 ·
Los mantenedores suelen responder en 4 días
Todos los issues de johannesjo/parallel-code
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
ci
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ClickHouse/clickhouse-js#1248 ·
Los mantenedores suelen responder en 1 día
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltAbiertotechnik
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
AhmedNAgy25/analysor#25 ·
Los mantenedores suelen responder en 1 día