GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: include Vite+ version in npm_config_user_agent · Issue #2897 · voidzero-dev/vite-plus

feat: include Vite+ version in npm_config_user_agent #2897

New issue
Copy link
New issue
Copy link
Closed
Feature
#2895
Closed
feat: include Vite+ version in npm_config_user_agent#2897
Feature
#2895
Copy link
Assignees
naokihaba
Labels
pending triage

Description

@naokihaba
naokihaba
opened on Oct 6, 2026
Issue body actions

Description

When running scripts with vp run, it would be helpful to include the Vite+ version in npm_config_user_agent so child tools can detect both Vite+ and the package manager.

Suggested solution

We can append vp/<version> to the user agent string, like this:

pnpm/<version> npm/? node/<version> <platform> <arch> vp/<version>

The package manager should stay at the front so we don't break tools like package-manager-detector, which only reads the first entry.

Also, we'll need to update the unit tests and CLI snapshots to match the new format.

Suggested solution

This adds vp/<version> to the user-agent string, so it now looks like:

pnpm/<version> npm/? node/<version> <platform> <arch> vp/<version>

We keep the package manager name at the beginning to avoid breaking tools like package-manager-detector, which only reads the first token.

Unit tests and CLI snapshots have also been updated to match the new format.

Alternative

No response

Additional context

Follow-up to #2385 and #2895.

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Activity

  1. naokihaba
    self-assigned this
    on Oct 6, 2026
  2. naokihaba
    added the
    Feature
    issue type on Oct 6, 2026
  3. naokihaba
    added
    pending triage
    on Oct 6, 2026
  4. fengmk2
    closed this as completedin #2895on Oct 6, 2026
  5. fengmk2
    added a commit that references this issue on Oct 6, 2026

    fix(cli): set package-manager lifecycle env for vp run (voidzero-dev#…

    This issue will close once commit c03dd22 is merged into the 'main' branch.
    c03dd22
  6. fengmk2
    added a commit that references this issue on Oct 14, 2026

    chore(deps): update rust crates (#1780)

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

Metadata

Metadata

Assignees

  • @naokihaba
    naokihaba

Labels

pending triage

Type

Feature

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.