Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I am seeking help to get the Cursor Agent working on my machine. Currently, the Agent (running Gemini 3 Pro / GPT-5.1) cannot execute any terminal command. Every attempt fails immediately with a PowerShell syntax error originating from the internal wrapper script (ps-script-…ps1) that Cursor generates to execute the command.Environment:
• OS: Windows 11 (Build 10.0.26200)
• Cursor Version: 2.0.77
• Shell: PowerShell 5.1 & Command Prompt
• Locale/System Language: Russian (likely causing encoding issues in the generated script)
The Issue:When the Agent tries to run a command (e.g., simple echo test), the operation crashes with the following output:
"C:\Users...\AppData\Local\Temp\ps-script-[UUID].ps1:34 char:134
- … coding]::UTF8.GetString([System.Convert]::FromBase64String(‘’{1}‘’))) …
-
~Missing closing ')' in method call.
…
C:\Users...\AppData\Local\Temp\ps-script-[UUID].ps1:49 char:54
- … it (‘Set-Alias -Name “{0}” -Value “{1}”’ -f $alias.Name, $definition)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The string is missing the terminator: '.
+ CategoryInfo : ParserError: ( : ) , ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInMethodCall"
The error output also contains garbled characters (mojibake), suggesting a severe encoding mismatch between the Agent’s script generation and the local PowerShell execution.What I have already tried (but failed):
- Cleaning the Environment: I removed my PowerShell profile, deleted all custom aliases, and unloaded all non-standard functions (including VS Code internal helpers and oss). The Env variables and PATH are clean (no unescaped quotes).
- Switching Shells: I changed “terminal.integrated.defaultProfile.windows” to “Command Prompt”. I can use cmd manually, but the Agent still forces execution via the broken PowerShell wrapper script.
- Forcing UTF-8: I tried launching PowerShell with -Command “$OutputEncoding = … New-Object System.Text.UTF8Encoding” and running chcp 65001. The wrapper script still crashes with the same syntax error.
Question:Has anyone encountered this specific ParserError with the Agent on Windows with non-English locales?Is there a way to: - Force the Agent to use cmd.exe natively without wrapping commands in ps-script?
- Override the encoding used by the Agent’s internal terminal integration?
Any advice on how to unblock the Agent would be appreciated.
Steps to Reproduce
Agent should run any commands in its terminal.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.0.77 (user setup)
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Gemini 3 pro, GPT-5.1
Does this stop you from using Cursor
No - Cursor works, but with this issue