Dashboard › cli › Symlink traps in recursive collection a…
01a08bab-3b6e-75c3-9925-075b076afddcRecursive file collection must use lstat, skip symlinked directories, and track visited realpaths; ancestor-pointing directory symlinks otherwise recurse forever, especially in macOS framework and dSYM trees. File symlinks may still be followed. Separately, a worktree node_modules symlink is safe only when both worktrees share the same branch and lockfile. Otherwise esbuild can fail with Host version X does not match binary version Y; remove the symlink and run pnpm install in the affected worktree.