Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Environment:
Cursor version: (2.4.37)
OS: Windows 10 (10.0.19045)
Shell: Windows PowerShell 5.1
No PowerShell profile exists ($PROFILE path does not exist)
Description:
After updating Cursor, the agent’s shell tool is completely broken. Every command — including simple ones like echo hello — fails before execution. The error comes from Cursor’s own generated wrapper script (ps-script-*.ps1), not from the user command.
The issue affects the agent shell only. The integrated terminal may work fine.
Steps to Reproduce
Open any workspace on Windows 10 with PowerShell 5.1 as the default shell
Start an Agent conversation
Ask the agent to run any shell command (e.g., echo hello)
The command fails immediately
Error output:
At C:\Users\User\AppData\Local\Temp\ps-script-GUID.ps1:34 char:134+ … coding]::UTF8.GetString([System.Convert]::FromBase64String(‘’{1}‘’))) …+ ~Missing ‘)’ in method call.At C:\Users\User\AppData\Local\Temp\ps-script-GUID.ps1:49 char:20+ Emit (‘Set-Alias -Name “{0}” -Value “{1}”’ -f $alias.Name …+ ~~~~~~~~~Unexpected token ‘Set-Alias’ in expression or statement. + CategoryInfo : ParserError: (
, ParentContainsErrorRecordException + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall
What I’ve tried (none fixed it):
Restarting Cursor
Changing terminal.integrated.defaultProfile.windows to Command Prompt
Verified no PowerShell profile exists (Test-Path $PROFILE returns False)
Deleting temp ps-script-*.ps1 files
Expected Behavior
Agent shell commands should execute normally.
Workaround: None for the agent shell. Running commands manually in an external terminal works.
Operating System
Windows 10/11
Version Information
Version: 2.4.37 (user setup)
VSCode Version: 1.105.1
Commit: 7b9c34466f5c119e93c3e654bb80fe9306b6cc70
Date: 2026-02-12T23:15:35.107Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.19045
Does this stop you from using Cursor
No - Cursor works, but with this issue
PS:
it worked well on the 13/2/26 but after Cursor update in 14/2/26 the error occurred.