fix(windows): revert unsafe PowerShell alias probing - #13489
Merged
Conversation
marius-kilocode
enabled auto-merge
August 26, 2026 18:26
kirillk
approved these changes
Aug 26, 2026
Closed
This was referenced Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Kilo CLI and the VS Code extension can fail before startup on Windows when the Microsoft Store PowerShell 7 execution alias exists at
%LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exebut cannot be inspected. The probe added in PR #13365 callsstatSyncon that alias, which raisesEACCESinstead of returning a missing entry.This affects both Bun 1.4 and Bun 1.3.14. Removing Store PowerShell 7 makes startup work because the protected alias disappears.
Why This Change Was Made
Revert PR #13365 for the emergency release instead of adding another unproven filesystem workaround. This restores the exact shell-selection behavior used before the regression:
pwshis available onPATH.WindowsAppsexecution aliases or off-PATH install locations.User Impact
Windows users with both PowerShell 5.1 and Store PowerShell 7 can start the CLI and extension again. Users who want PowerShell 7 selected must keep
pwshonPATHor configure it explicitly until safe off-PATH detection is reintroduced separately.Evidence
statSyncfilter and reportsEACCESforWindowsApps\pwsh.exe.Fixes #13467 and #13473. Reverts #13365.