Chronic time out with no recovery

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

there is a repeating pattern when the agent runs this comand where the IDE throws a connection error and “Try Again” just loops to the same situation.

Steps to Reproduce

agent runs the command

Expected Behavior

not time ou, or do so in a way the agent can remediate and not require manua intervention

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.29 (system setup)
VSCode Version: 1.105.1
Commit: 4ca9b38c6c97d4243bf0c61e51426667cb964bd0
Date: 2026-01-08T00:34:49.798Z
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?

Opus 4.5 on MAX mode

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. This is a known bug with PowerShell commands that use | Select-Object -First.

When the agent runs npm run lint 2>&1 | Select-Object -First 30, PowerShell cuts off the pipe and returns an incorrect exit code that Cursor can’t handle. It shows up as “Connection failed”, but it’s actually a local error.

Workaround:

Add this to .cursorrules:

Don't use "| Select-Object -First" in PowerShell commands - run commands to completion instead

Or run the command manually without the pipe:

npm run lint

The team is already working on a fix.