Detect Codex installs managed by Vite+
Open 💬 0 comments Opened Jun 30, 2026 by TheAlexLichter
When Codex is installed with Vite+ via vp install -g @openai/codex, the JS shim currently marks the native binary as npm-managed which is incorrect.
<img width="563" height="164" alt="Image" src="https://github.com/user-attachments/assets/0dc24ff4-a818-48d5-aac9-06e8622f8f08" />
That makes doctor/update surfaces suggest npm install -g even though Vite+ owns the global package.
Codex should detect packages under VP_HOME/packages and expose a Vite+-managed install context.
This should also keep npm-shim installs distinct from vp install -g ownership.
Note: I've provided a simple fix for this in my own branch.
Related:
- https://github.com/openai/codex/pull/19389 (Added the current bun detection)