You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"shell": "pwsh" config not respected, still uses PowerShell 5.1 on Windows #30615
PSVersion: 5.1.26100.8457
ProcessName: powershell
Path: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.EXE
Expected Behavior
When "shell": "pwsh" is configured, commands should execute in PowerShell 7 (pwsh.exe), which defaults to UTF-8 and resolves Chinese encoding issues that plague PS 5.1.
Environment
OS: Windows (win32)
PowerShell 5.1: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.EXE
PowerShell 7: installed and available at pwsh
opencode config: ~/.config/opencode/opencode.json with "shell": "pwsh"
Impact
Chinese (and other non-ASCII) characters are garbled in PS 5.1 due to GB2312 default encoding. PS 7 uses UTF-8 by default and works correctly.
Activity
github-actions commentedon Jun 3, 2026
This issue might be a duplicate of existing issues. Please check:
"shell": "pwsh"config not respected when loading skills on Windows (Expand-Archive using PS 5.1)If your issue is distinct from those, please add a comment explaining how it differs.
chirag127 commentedon Jul 1, 2026
@-
github-actions commentedon Aug 31, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.