The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 17:45 UTC
fix(shell): add ~/.local/bin to the Windows CLI resolver so native-installed providers are found (#5074)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Arham Amin committed
Aug 10, 2026 at 03:15 UTC
c8ad4b8135dca79c439a44845d270f12c355cfe2
4 files changed
+9
-2
apps/desktop/src/shell/DesktopShellEnvironment.test.ts
+1
@@ -231,6 +231,7 @@ describe("DesktopShellEnvironment", () => {
231
"C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs",
232
"C:\\Users\\testuser\\AppData\\Local\\Volta\\bin",
233
"C:\\Users\\testuser\\AppData\\Local\\pnpm",
234
+ "C:\\Users\\testuser\\.local\\bin",
235
"C:\\Users\\testuser\\.bun\\bin",
236
"C:\\Users\\testuser\\scoop\\shims",
237
"C:\\Custom\\Bin",
apps/desktop/src/shell/DesktopShellEnvironment.ts
+1
-1
@@ -207,7 +207,7 @@ const knownWindowsCliDirs = (env: NodeJS.ProcessEnv): ReadonlyArray<string> => [
207
...trimNonEmpty(env.USERPROFILE).pipe(
208
Option.match({
209
onNone: () => [],
210
- onSome: (value) => [`${value}\\.bun\\bin`, `${value}\\scoop\\shims`],
210
+ onSome: (value) => [`${value}\\.local\\bin`, `${value}\\.bun\\bin`, `${value}\\scoop\\shims`],
211
}),
212
),
213
];
packages/shared/src/shell.test.ts
+4
@@ -336,6 +336,7 @@ describe("resolveKnownWindowsCliDirs", () => {
336
"C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs",
337
"C:\\Users\\testuser\\AppData\\Local\\Volta\\bin",
338
"C:\\Users\\testuser\\AppData\\Local\\pnpm",
339
+ "C:\\Users\\testuser\\.local\\bin",
340
"C:\\Users\\testuser\\.bun\\bin",
341
"C:\\Users\\testuser\\scoop\\shims",
342
]);
@@ -476,6 +477,7 @@ effectIt.layer(NodeServices.layer)("resolveWindowsEnvironment", (it) => {
477
"C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs",
478
"C:\\Users\\testuser\\AppData\\Local\\Volta\\bin",
479
"C:\\Users\\testuser\\AppData\\Local\\pnpm",
480
+ "C:\\Users\\testuser\\.local\\bin",
481
"C:\\Users\\testuser\\.bun\\bin",
482
"C:\\Users\\testuser\\scoop\\shims",
483
"C:\\Shell\\Bin",
@@ -524,6 +526,7 @@ effectIt.layer(NodeServices.layer)("resolveWindowsEnvironment", (it) => {
526
"C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs",
527
"C:\\Users\\testuser\\AppData\\Local\\Volta\\bin",
528
"C:\\Users\\testuser\\AppData\\Local\\pnpm",
529
+ "C:\\Users\\testuser\\.local\\bin",
530
"C:\\Users\\testuser\\.bun\\bin",
531
"C:\\Users\\testuser\\scoop\\shims",
532
"C:\\Shell\\Bin",
@@ -564,6 +567,7 @@ effectIt.layer(NodeServices.layer)("resolveWindowsEnvironment", (it) => {
567
).toEqual({
568
PATH: [
569
"C:\\Users\\testuser\\AppData\\Roaming\\npm",
570
+ "C:\\Users\\testuser\\.local\\bin",
571
"C:\\Users\\testuser\\.bun\\bin",
572
"C:\\Users\\testuser\\scoop\\shims",
573
"C:\\Windows\\System32",
packages/shared/src/shell.ts
+3
-1
@@ -682,7 +682,9 @@ export function resolveKnownWindowsCliDirs(env: NodeJS.ProcessEnv): ReadonlyArra
682
...(appData ? [`${appData}\\npm`] : []),
683
...(localAppData ? [`${localAppData}\\Programs\\nodejs`, `${localAppData}\\Volta\\bin`] : []),
684
...(localAppData ? [`${localAppData}\\pnpm`] : []),
685
- ...(userProfile ? [`${userProfile}\\.bun\\bin`, `${userProfile}\\scoop\\shims`] : []),
685
+ ...(userProfile
686
+ ? [`${userProfile}\\.local\\bin`, `${userProfile}\\.bun\\bin`, `${userProfile}\\scoop\\shims`]
687
+ : []),
688
];
689
}
690