Cursor shell completion delay

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

There is an issue with Cursor where the completion of the Shell is not detected or not fast enough

Steps to Reproduce

Just trying to ask to run commands on Windows.

Expected Behavior

It should not take up to 20 Seconds until Cursor realizes the command has been finished.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.12.30 (user setup)
VS Code Extension API: 1.128.0
Commit: 63a2996a10d9e476b6c28e951dd7691d9c0cf480
Date: 2026-07-21T22:50:03.568Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Any

For AI issues: add Request ID with privacy disabled

Already send via email

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the detailed report and for the timing screenshot. It shows about 0.3 s for the command itself versus about 12 to 13 s wall time.

This is a known issue on our side. On Windows, the agent can take a long time to detect that a shell command has finished, even though the output is already ready. It shows up most often on Windows build 10.0.26200 with PowerShell 7. We’re tracking the bug, but I can’t give a solid ETA for a fix yet.

Things to try, roughly in order of impact:

  1. Add Cursor to your antivirus or EDR exclusions. On Windows, each agent command spawns a separate process and writes temp files. If AV or EDR scans those, the delay can grow a lot. For the delay case (not missing output), this is usually the biggest lever.
  2. Legacy Terminal Tool: Settings → Agents → Inline Editing & Terminal → enable Legacy Terminal Tool, then fully restart Cursor (not Reload Window) and start a new chat. On some Windows builds this removes the delay completely. If you already tried it and it made no difference, let me know, that’s useful for debugging.
  3. Use Git Bash instead of PowerShell or cmd (via Git for Windows). Reports say it’s more stable than both.
  4. Set Command Prompt as the default profile: terminal.integrated.defaultProfile.windows: "Command Prompt". This can partially improve things on some machines.
  5. Manually click Cancel when it’s stuck on running even though the output is already there. It usually unblocks right away. This isn’t a fix, just a workaround.

Let me know which option helped (or didn’t), especially what you see with Legacy Terminal Tool. When I have an update on the fix, I’ll post it here.

Hello

I tried Legacy Tool and also changing the Shell Profile but both did not helped. I think also when changing the Shell Profile it doesn get applied because Cursor still uses Powershell and it says that’s a Bug in Cursor.

Thanks for following up with the results. The fact that Legacy Terminal Tool didn’t make a difference is a useful data point.

A couple things you haven’t tried yet that usually have the biggest impact specifically for latency, not missing output:

  1. AV or EDR exclusions: add Cursor to your antivirus or EDR exclusions. On Windows, each agent command starts a separate process and writes temp files. If your security tool scans those, latency can increase a lot. This is the most likely lever in your case.
  2. Git Bash via Git for Windows instead of PowerShell or cmd. Based on feedback, it’s more stable than both.

About the profile not applying and Cursor still launching PowerShell: after changing terminal.integrated.defaultProfile.windows, you need to fully quit and restart Cursor, specifically Quit, not Reload Window, and start a new chat. Otherwise the agent will keep using the old session. Can you confirm you did a full restart? If you did and it still ignores the profile, it looks like separate behavior that’s been reported here: Agent command execution uses WSL instead of the Windows default integrated terminal (Git Bash)

The latency bug is known on our side and we’re tracking it. I can’t give a solid ETA for a fix yet. Let me know if the AV or EDR exclusions helped, that’s the main question right now.

Hello. I dont think it will help.

Also the profile doesnt apply even after restarting so it seems this is another issue.

Hopefully it get fixed asap because it’s annoying and I cant use Cursor anymore.