Since the new Terminal was introduced ( not the legacy mode ) cursor agent is not capable to properly run commands in the terminal. It tries to run something from the temp folder and crashes with this error:
AppData\Local\Temp\ps-script-fa8bef8e-655c-4d49-819a-cdea7b85f43c.ps1:119 char:134
I’m having the same exact problem… Cursor is simply trying to move files into a different folder using a generate PowerShell code and failed with the same “Missing ‘)’ in method call” error.
Run Cursor as admin doesn’t solve the problem either.
Hey, thanks for the report. This is a known issue with the new terminal implementation on Windows when it tries to run PowerShell scripts from the temp folder.
Try this:
Open Cursor Settings Ctrl+Shift+J
Go to the Chat tab
Find “Legacy Terminal Tool” under Inline Editing & Terminal
Enable “Legacy Terminal Tool”
Press Ctrl+Shift+P → “Terminal: Kill All Terminals”
Fully restart Cursor
Test agent commands again
This should restore proper agent command behavior. Let me know if this resolves the issue.
Hi, can you run ls env: in a Powershell Terminal and post it here? Feel free to censor the output or if you’d prefer, can you send it into support and mention they should forward it to Ani
Hi running in Legacy mode is also not working properly. Basically after the command runs ( successfully ) cursor agents don’t do anything, like they can’t see that powershell is done