You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(worktree): symlink the repo's node_modules into the coder worktree (v0.24.0) (#58)
A fresh `git worktree` is a bare checkout with NO node_modules, so an npm/pnpm pre-PR gate
(local_gate_cmd) — or the coder running a build — couldn't resolve deps, and the gate
failed in the worktree even though it passes in the main repo. (Surfaced dispatching a DS
fix to a pnpm monorepo: `pnpm -C packages/ui build` had no deps in the worktree.)
create_worktree now symlinks every node_modules dir from the main repo into the worktree
at the same relative path (root + each monorepo workspace package), so the worktree shares
the repo's installed deps without a slow/offline per-worktree install. Best-effort: a
non-node repo is a no-op; symlink failures are skipped. Build output (dist/) still lands in
the worktree — only the deps are shared. Worktree removal unlinks the symlink, never the
target (safe).
+3 tests (root + monorepo package symlinks; non-node no-op; no descent into node_modules).
196 pass; ruff clean.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments