The best way to control Claude Code, Codex and more from any computer or phone
fix(dev): freeze the worktree setup lockfile (#19747)
maria committed
Oct 15, 2026 at 23:42 UTC
b8e829dc8cbeb9c83968e961996a3614dc1a056f
1 file changed
+3
-1
scripts/setup-worktree.ts
+3
-1
@@ -21,7 +21,9 @@ const worktree = NodePath.dirname(import.meta.dirname);
21
// `shell` resolves `vp` through PATH, including Windows command shims.
22
// Setup has no one answering install prompts. Pass pnpm's confirmation flag
23
// through vp and leave stdin closed so other prompts fail instead of hanging.
24
-const install = NodeChildProcess.spawnSync("vp i -- --yes", {
24
+// Install exactly the locked dependencies so setup never rewrites the lockfile.
25
+// A stale lockfile must fail setup rather than silently resolving a new one.
26
+const install = NodeChildProcess.spawnSync("vp i --frozen-lockfile -- --yes", {
27
cwd: worktree,
28
shell: true,
29
stdio: ["ignore", "inherit", "inherit"],