Skip to content

feat(windows): prefer pwsh over powershell.exe for Shell tool#1790

Open
scwf wants to merge 1 commit intoMoonshotAI:mainfrom
scwf:pwsh
Open

feat(windows): prefer pwsh over powershell.exe for Shell tool#1790
scwf wants to merge 1 commit intoMoonshotAI:mainfrom
scwf:pwsh

Conversation

@scwf
Copy link
Copy Markdown

@scwf scwf commented Apr 8, 2026

Environment.detect() resolves pwsh via PATH, then default install under Program Files\PowerShell\7, then inbox System32 powershell.exe, then PATH powershell. shell_name remains Windows PowerShell so Shell and background workers keep using -command.

Add tests for pwsh-from-PATH and pwsh-from-install-dir; mock shutil.which in Windows environment tests. Document in CHANGELOG (en/zh).


Open with Devin

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Environment.detect() resolves pwsh via PATH, then default install under Program Files\PowerShell\7, then inbox System32 powershell.exe, then PATH powershell. shell_name remains Windows PowerShell so Shell and background workers keep using -command.

Add tests for pwsh-from-PATH and pwsh-from-install-dir; mock shutil.which in Windows environment tests. Document in CHANGELOG (en/zh).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant