Skip to content

fix(env): clarify the use case of vp-use.cmd#2128

Merged
fengmk2 merged 5 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/windows-vp-use
Jul 10, 2026
Merged

fix(env): clarify the use case of vp-use.cmd#2128
fengmk2 merged 5 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/windows-vp-use

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

vp env setup currently creates vp-use.cmd on every platform even though the wrapper is only usable from Windows Command Prompt. Its writer also runs before VP_HOME/bin is created, so setup skips the wrapper when starting from a fresh home. The CMD-specific version-switching command is also missing from the public environment guide.

This PR creates vp-use.cmd alongside the Windows shims after the bin directory is initialized, adds regression coverage for fresh Windows setup and Unix exclusion, and documents how to use vp-use from Command Prompt.

🤖 Generated with Codex

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 98f9bcc
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a505885a5255e0008a14159

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@liangmiQwQ liangmiQwQ changed the title fix(env): only generate vp-use on Windows fix(env): clarify the use case of vp-use.cmd Jul 10, 2026

@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: d946fe72eb

ℹ️ 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 docs/guide/env.md
create_env_files ran before bin existed on a fresh VP_HOME, so initial setup skipped the CMD wrapper. Create it after bin initialization and cover the fresh setup path.
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 7742729a96

ℹ️ 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".

@liangmiQwQ liangmiQwQ marked this pull request as ready for review July 10, 2026 02:13
@fengmk2

fengmk2 commented Jul 10, 2026

Copy link
Copy Markdown
Member

ci hang issue will be fixed in #2115

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

Okay, updated

@fengmk2 fengmk2 merged commit 62f9f0e into voidzero-dev:main Jul 10, 2026
51 of 52 checks passed
@liangmiQwQ liangmiQwQ deleted the liang/codex/windows-vp-use branch July 10, 2026 02:46
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.

2 participants