Skip to content

fix(env): isolate direct shims from package manager selection - #2658

Open
liangmiQwQ wants to merge 5 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/pm-selection-shim-isolation
Open

fix(env): isolate direct shims from package manager selection#2658
liangmiQwQ wants to merge 5 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/pm-selection-shim-isolation

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Stack 1/2. Merge this PR first, then #2659 (stack 2/2). Both PRs target main because the branches are hosted in a fork. #2659 currently includes this layer and links to its incremental diff.

VP_PACKAGE_MANAGER currently changes both the manager used by vp install and the version used by a directly invoked matching shim. This PR makes direct shims ignore that variable while preserving its effect on vp install and other package-manager commands.

For example, with a project pin of pnpm@10.18.0 and VP_PACKAGE_MANAGER=pnpm@10.19.0, Vite+ selects 10.19.0 for vp install and 10.18.0 for the pnpm shim. The existing session-file, project, and default resolution paths remain available to shims.

This layer adds no environment variables and does not change vp env use. Its shell-wrapper version switching is restored through independent version variables in stack 2/2, so the two layers should be landed together in order.

🤖 Generated with Codex

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-10T15:05:57.727519Z 9ef8a3e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ef8a3ea0e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vp_global_cli/src/shim/dispatch.rs
Comment thread crates/vp_global_cli/src/shim/dispatch.rs
@liangmiQwQ
liangmiQwQ marked this pull request as ready for review September 10, 2026 22:19
@liangmiQwQ
liangmiQwQ requested a review from fengmk2 September 10, 2026 22:19
@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Sep 11, 2026

@fengmk2 fengmk2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liangmiQwQ LGTM, when the other pr is ready, I will merged them both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants