fix(desktop): resolve claude executable on windows #4896
Closedshubhu121(GitHub profile, opens in a new tab)wants to merge 3 commits into
main fromrefs/pull/4896/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/desktop/src/shell/DesktopShellEnvironment.ts line 254Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -193,3 +193,13 @@193193 [194194 "$ErrorActionPreference = 'Stop'",195195 ...names.flatMap((name) => {196+ if (name.toUpperCase() === "PATH") {197+ return [198+ `Write-Output '${startMarker(name)}'`,199+ `$machineValue = [Environment]::GetEnvironmentVariable('${name}', 'Machine')`,200+ `$userValue = [Environment]::GetEnvironmentVariable('${name}', 'User')`,201+ `$processValue = [Environment]::GetEnvironmentVariable('${name}')`,202+ `$merged = ($machineValue, $userValue, $processValue | Where-Object { $null -ne $_ -and $_.Length -gt 0 }) -join ';'`,203+ "if ($null -ne $merged -and $merged.Length -gt 0) { Write-Output $merged }",204+ `Write-Output '${endMarker(name)}'`,205+ ];
- apps/desktop/src/shell/DesktopShellEnvironment.ts line 202OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -193,3 +193,10 @@193193 [194194 "$ErrorActionPreference = 'Stop'",195195 ...names.flatMap((name) => {196+ if (name.toUpperCase() === "PATH") {197+ return [198+ `Write-Output '${startMarker(name)}'`,199+ `$machineValue = [Environment]::GetEnvironmentVariable('${name}', 'Machine')`,200+ `$userValue = [Environment]::GetEnvironmentVariable('${name}', 'User')`,201+ `$processValue = [Environment]::GetEnvironmentVariable('${name}')`,202+ `$merged = ($processValue, $userValue, $machineValue | Where-Object { $null -ne $_ -and $_.Length -gt 0 }) -join ';'`,
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
351b850b-2a78-4b0a-bcfd-db906dc7fe21You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share