fix(plugins): restore missing environment values
CI / Capabilities and shell quality (push) Successful in 10s
CI / Python tests and compilation (push) Successful in 11s
CI / PowerShell tests on Ubuntu (push) Successful in 27s
CI / CI configuration security checks (push) Successful in 3s
CI / Build and inspect generated packages (push) Successful in 6s
CI / Bash integration and installation guards (push) Canceled after 0s
CI / Installed client configuration smoke tests (push) Canceled after 0s
CI / Qwen retrieval integration (push) Canceled after 13m38s

This commit is contained in:
fraujulian committed 2026-09-18 13:18:42 +02:00
1 parent 3361ba51b2
commit 715446d165
1 file changed
+4 -1
+4 -1
View File
@@ -57,7 +57,10 @@ function Get-InstalledPlugins {
if ($Client -eq 'Claude') { return @($items) }
return @($items.installed)
} finally {
foreach ($name in $previousEnvironment.Keys) { [Environment]::SetEnvironmentVariable($name, $previousEnvironment[$name], 'Process') }
foreach ($name in $previousEnvironment.Keys) {
if ($null -eq $previousEnvironment[$name]) { Remove-Item -LiteralPath ("Env:" + $name) -ErrorAction SilentlyContinue }
else { [Environment]::SetEnvironmentVariable($name, $previousEnvironment[$name], 'Process') }
}
}
}