Skip to content

Installed via VP, the pi coding agent with packages can't be used. #2220

Closed

Description

@xsj284

Describe the bug

Installed via VP, the pi coding agent with packages can't be used.

Reproduction

https://github.com/xsj284/vp-bug-pi-agent

Steps to reproduce

$ vp add -g @earendil-works/pi-coding-agent
$ pi install npm:@vigolium/piolium
Error: Failed to load extension "/home/xsj284/.pi/agent/npm/node_modules/@vigolium/piolium/extensions/piolium/index.ts": Failed to load extension: Cannot find module '/home/xsj284/.vite-plus/packages/@earendil-works/pi-coding-agent' imported from /home/xsj284/.vite-plus/packages/@earendil-works/pi-coding-agent#2753e02c-9319-456f-bc0f-23d6d7b6fba5/lib/node_modules/@earendil-works/pi-coding-agent/node_modules/jiti/lib/jiti-static.mjs
Hint: Start without extensions using "pi -ne".

System Info

$ vp env current
VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.18.0
  Source   lts

Tool Paths:
  node  /home/xsj284/.vite-plus/js_runtime/node/24.18.0/bin/node
  npm   /home/xsj284/.vite-plus/js_runtime/node/24.18.0/bin/npm
  npx   /home/xsj284/.vite-plus/js_runtime/node/24.18.0/bin/npx

vp --version
VITE+ - The Unified Toolchain for the Web

vp v0.2.5

Local vite-plus:
  vite-plus  Not found

Tools:
  vite             Not found
  rolldown         Not found
  vitest           Not found
  oxfmt            Not found
  oxlint           Not found
  oxlint-tsgolint  Not found
  tsdown           Not found

Environment:
  Package manager  Not found
  Node.js          v24.18.0

Used Package Manager

bun

Logs

Validations

Activity

  1. added theissue type on Jul 22, 2026
  2. jong-kyung commented on Jul 23, 2026

    @jong-kyung
    Collaborator

    Thanks for the report. This only affects Pi installations created or updated by Vite+ v0.2.2+ using the # path. Existing Pi installations without an install ID continue to work.

    Affected users can temporarily install Pi with Bun:

    vp remove -g @earendil-works/pi-coding-agent
    bun add -g --ignore-scripts @earendil-works/pi-coding-agent
    pi install npm:@vigolium/piolium

    cc. @liangmiQwQ

  3. liangmiQwQ commented on Jul 23, 2026

    @liangmiQwQ
    Collaborator

    @jong-kyung Thanks for your analyzing, this is indeed a bug I left. I am trying to find a patch for this right now. This is not completely related to #1986, however, I will remove this parent issue.

  4. self-assigned this
    on Jul 23, 2026
  5. added a commit that references this issue on Aug 2, 2026
    8ca53e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions