Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): pick up newly installed provider CLIs on Windows refresh #6356

Closedfraineralex(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6356/headopened View on GitHub

Showing 5 changed files with 23 additions and 2 deletions (loading 2).

x
0 of 5 viewed, 5 left
1 addition and 0 deletionsapps/desktop/src/shell/DesktopShellEnvironment.test.tsModified
View file
@@ -229,6 +229,7 @@
"C:\\Windows\\System32",
"C:\\Users\\testuser\\AppData\\Roaming\\npm",
"C:\\Users\\testuser\\AppData\\Local\\Programs\\nodejs",
+ "C:\\Users\\testuser\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin",
"C:\\Users\\testuser\\AppData\\Local\\Volta\\bin",
"C:\\Users\\testuser\\AppData\\Local\\pnpm",
"C:\\Users\\testuser\\.local\\bin",
19 additions and 2 deletionsapps/desktop/src/shell/DesktopShellEnvironment.tsModified
View file
@@ -201,7 +201,12 @@
...trimNonEmpty(env.LOCALAPPDATA).pipe(
Option.match({
onNone: () => [],
- onSome: (value) => [`${value}\\Programs\\nodejs`, `${value}\\Volta\\bin`, `${value}\\pnpm`],
+ onSome: (value) => [
+ `${value}\\Programs\\nodejs`,
+ `${value}\\Programs\\OpenAI\\Codex\\bin`,
+ `${value}\\Volta\\bin`,
+ `${value}\\pnpm`,
+ ],
}),
...trimNonEmpty(env.USERPROFILE).pipe(
@@ -242,9 +247,21 @@
"$ErrorActionPreference = 'Stop'",