Cursor Breaks with Pipes in Powershell

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When the Agent runs it tries to run Power Shell commands that have a pipe | like this ‘cd C:\clip; git log --oneline – BusinessLayer/ | Select-Object -First 10’ That causes the connection to drop

Steps to Reproduce

Watch it issue ‘cd C:\clip; git log --oneline – BusinessLayer/ | Select-Object -First 10’

Expected Behavior

The command should no make the Agent drop its connections

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.36 (user setup)
VSCode Version: 1.105.1
Commit: 9cd7c8b6cebcbccc1242df211dee45a4b6fe15e0
Date: 2025-11-26T03:43:48.079Z
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?

Sonnet 4.5

For AI issues: add Request ID with privacy disabled

Request ID: 27c4927a-4237-4b8b-92ce-be9b0d948cec
ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Users/JorgenChristiansen/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6331:404567

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known issue with the Agent’s new terminal implementation on Windows, especially when PowerShell commands contain special characters like pipes.

Please try the following solution:

  • Open Cursor Settings with Ctrl+Shift+J
  • Go to the Agents tab → Inline Editing & Terminal
  • Enable “Legacy Terminal Tool”
  • Press Ctrl+Shift+P → select “Terminal: Kill All Terminals”
  • Fully restart Cursor
  • Test your Agent commands again

This has resolved similar PowerShell terminal issues for other users on Windows. The engineering team is aware that the new terminal implementation has ongoing issues on Windows.

Let me know if this resolves the problem!