Skip to content

fix(generations): isolate profile projection from pnpm - #267

Merged
yaojin3616 merged 1 commit into
mainfrom
codex/isolate-generation-projection-pnpm
Sep 1, 2026
Merged

fix(generations): isolate profile projection from pnpm#267
yaojin3616 merged 1 commit into
mainfrom
codex/isolate-generation-projection-pnpm

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

Summary

  • stage generation installs, updates, and removals for the next cold start instead of replacing live Profile links
  • keep dsh-market version inventory visible while deferring both bundles and node_modules projection until Harness is stopped
  • temporarily remove generation-owned dependency and override fields around every Profile pnpm run, then restore them without disturbing pnpm-managed fields
  • fail closed when a projected Profile cannot use the generation-aware pnpm runner

Why

Generation projection and pnpm previously both owned profiles/web/node_modules/<plugin>. On Windows, pnpm could therefore attempt <plugin>_tmp_* -> <plugin> while the existing generation junction or live Harness still held the destination, producing EPERM and a failed install. This change gives the path a single owner: the cold-start generation projector.

Validation

  • npm test (76 files, 613 tests)
  • npm run typecheck
  • npm run build
  • real offline pnpm regression verifies the projected plugin is absent from pnpm-lock.yaml and its generation link remains unchanged

@yaojin3616
yaojin3616 merged commit 2073bf0 into main Sep 1, 2026
5 checks passed
@yaojin3616
yaojin3616 deleted the codex/isolate-generation-projection-pnpm branch September 1, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant