The best way to control Claude Code, Codex and more from any computer or phone
fix(server): Vite+ provider installs get update prompts on Windows (#19887)
Co-authored-by: Anton Georgiev <a.georgiev.extern@rewe-group.at> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
tonank committed
Oct 20, 2026 at 06:17 UTC
d1b4ce93f259f226c957dfd4a686fcdcf959aad1
2 files changed
+51
-1
packages/provider-core/src/server/maintenanceResolver.test.ts
+43
@@ -544,6 +544,49 @@ it.layer(NodeServices.layer)("providerMaintenance", (it) => {
544
}),
545
);
546
547
+ it.effect.each([
548
+ {
549
+ name: "the default home",
550
+ resolved: "/Users/theo/.vite-plus/bin/claude",
551
+ real: "/Users/theo/.vite-plus/current/bin/vp",
552
+ platform: "darwin",
553
+ },
554
+ {
555
+ name: "the XDG home",
556
+ resolved: "/home/theo/.local/share/vite-plus/bin/claude",
557
+ real: "/home/theo/.local/share/vite-plus/current/bin/vp",
558
+ platform: "linux",
559
+ },
560
+ {
561
+ name: "the Windows home",
562
+ resolved: "C:\\Users\\Theo\\AppData\\Local\\vite-plus\\bin\\claude.cmd",
563
+ real: "C:\\Users\\Theo\\AppData\\Local\\vite-plus\\packages\\@anthropic-ai\\claude-code\\lib\\node_modules\\@anthropic-ai\\claude-code\\cli.js",
564
+ platform: "win32",
565
+ },
566
+ ] as const)("updates a Vite+ global install in $name with vp", (fixture) =>
567
+ Effect.gen(function* () {
568
+ const capabilities = yield* resolveInstall({ definition: claudeUpdate, ...fixture });
569
+
570
+ expect(capabilities.update).toMatchObject({
571
+ command: "vp i -g @anthropic-ai/claude-code",
572
+ lockKey: "vite-plus-global",
573
+ });
574
+ }),
575
+ );
576
+
577
+ it.effect("keeps a project folder named vite-plus manual-only", () =>
578
+ Effect.gen(function* () {
579
+ const capabilities = yield* resolveInstall({
580
+ definition: claudeUpdate,
581
+ resolved: "/work/vite-plus/bin/claude",
582
+ real: "/work/vite-plus/node_modules/@anthropic-ai/claude-code/cli.js",
583
+ platform: "linux",
584
+ });
585
+
586
+ expect(capabilities.update).toBeNull();
587
+ }),
588
+ );
589
+
590
it.effect("proves Windows npm ownership from the package manifest beside the shim", () =>
591
Effect.gen(function* () {
592
const tempDir = yield* makeTempDir("t3-npm-windows-capabilities");
packages/provider-core/src/server/maintenanceResolver.ts
+8
-1
@@ -211,8 +211,15 @@ export function normalizeCommandPath(commandPath: string): string {
211
return commandPath.replaceAll("\\", "/").toLowerCase();
212
}
213
214
+/**
215
+ * Vite+ shims live in `<VP_HOME>/bin`: `~/.vite-plus` by default,
216
+ * `~/.local/share/vite-plus` with the XDG layout, and `%LOCALAPPDATA%\vite-plus`
217
+ * on Windows.
218
+ */
219
function isVitePlusGlobalCommandPath(commandPath: string): boolean {
215
- return normalizeCommandPath(commandPath).includes("/.vite-plus/bin/");
220
+ return /\/(?:\.vite-plus|\.local\/share\/vite-plus|appdata\/local\/vite-plus)\/bin\//.test(
221
+ normalizeCommandPath(commandPath),
222
+ );
223
}
224
225
function isBunGlobalCommandPath(commandPath: string): boolean {