Multiple cmd.exe windows popping up on every AI request (Windows)

Describe the Bug

I’m experiencing a disruptive bug where multiple cmd.exe windows (Command Prompt) open automatically every time I make a request to the AI (using Composer or Chat).The issue:For every single action or request, a new terminal window spawns.This happens even for simple code generation or file reading tasks.The windows often remain open or flash rapidly, interrupting the workflow.Environment:OS: Windows 10/11Cursor Version: [Inserisci qui la tua versione, la trovi in Help → About]Default Terminal: [Scrivi qui se usi PowerShell o CMD di solito]Steps I’ve already tried (without success):Enabled “Legacy Terminal Tool” in Settings.Set a specific “Default Profile” for the terminal.Disabled “Terminal Command Integration” in AI settings.Ran Set-ExecutionPolicy for PowerShell.Is there a known fix for this “terminal spawning loop” on Windows? It makes the IDE almost unusable when using AI features.Thank you!

Steps to Reproduce

run a command on agent chat

Operating System

Windows 10/11

Version Information

Version: 2.7.0-pre.180.patch.0 (user setup)
VSCode Version: 1.105.1
Commit: f1480c9f818dce3c34ccd3ac3b30ccd61a370050
Date: 2026-04-02T05:47:34.840Z
Layout: editor
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

Yes - Cursor is unusable

Same problem on nightly version Version: 2.7.0-pre.183.patch.0 (user setup)
VSCode Version: 1.105.1
Commit: 773a51e22fbd2cb48df1e3ee7bba6df9eb1b99c0
Date: 2026-04-03T01:54:33.236Z
Layout: editor
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Same stable Version: 3.0.9 (user setup)
VSCode Version: 1.105.1
Commit: 93e276db8a03af947eafb2d10241e2de17806c20
Date: 2026-04-03T02:06:46.446Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Hi @Pietros,

This is a confirmed bug. On Windows, the process that handles agent tool calls spawns child processes without the correct flag to keep them hidden, which causes those visible cmd.exe windows on every request.

Unfortunately there isn’t a workaround for this at the moment. Our engineering team has the fix identified and it’s been escalated for resolution.

I’ll follow up here once the fix ships.

ok thx

but where you will put the patch on nightly o stable release…

We’ve been trying to reproduce this internally but haven’t been able to trigger it yet. To help us narrow it down, could you share:

  1. How do you launch Cursor? (Start Menu, desktop shortcut, pinned taskbar, or from a terminal/command prompt?)

  2. A short screen recording showing the cmd.exe windows appearing when you use the agent? Even 15-20 seconds would help.

  3. Your default terminal profile in Cursor — go to the terminal dropdown (the + button) and let us know if it says PowerShell, Command Prompt, or something else.

Regarding your question about where the fix would land: fixes typically ship to nightly first and then make their way to stable. I’ll update this thread once we have more info.

1)Start-menu
2)command prompt, but i have tried also git-bash, powershell e wls

3)video about Watch screen | Streamable

Root cause identified via Process Monitor:

Cursor spawns:

"C:\Program Files\PowerShell\7\pwsh.exe" -noexit -command "try { . \"...\shellIntegration.ps1\" } catch {}"

Creation flags: 0 — missing CREATE_NO_WINDOW (0x08000000).

This is a Cursor-side bug in how it spawns background shell processes on Windows. The process is visible regardless of terminal profile settings or MCP configuration.

Confirmed on:

  • Stable 3.0.9

  • Nightly 2.7.0-pre.183

Not caused by: MCP servers, terminal profile, ConPTY, PowerShell execution policy.

Fix needed: Add CREATE_NO_WINDOW flag when spawning background shell processes on Windows.

Excellent detective work with Process Monitor — that’s exactly the kind of diagnostic data we needed.

Your finding confirms the issue is in how Cursor spawns shell integration processes on Windows (the pwsh.exe with shellIntegration.ps1). The creation flags missing CREATE_NO_WINDOW is the key detail. I’ve updated our engineering ticket with your Process Monitor analysis, the video, and your confirmed launch method (Start Menu).

This should help our team pinpoint and fix the issue. I’ll follow up here once a fix ships.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hi Cursor Support,
I’m experiencing two consistent issues with Cursor on my Windows 11 machine:

Freezing when manually editing code files
The entire application freezes (becomes completely unresponsive) as soon as I try to manually edit text in a code file.
Multiple duplicate windows opening
Every time I open or use Cursor, multiple duplicate instances/windows keep spawning. I can see many Cursor processes under Task Manager.

Environment:

Cursor Version: 3.1.10 (user setup)
VSCode Version: 1.105.1
Commit: dacbe9b31599a253763e4910eb6ab38704653320
Date: 2026-04-13T11:39:16.806Z
Build Type: Stable
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
OS: Windows 11 (Windows_NT x64 10.0.26200)

This is happening reliably and makes Cursor very difficult to use.
Could you please help me troubleshoot or provide a fix for these issues?
Thank you!

Steps to Reproduce

Just start cursor and try to access a larger code file maybe a 1000 line code file

Expected Behavior

I should be able to edit files without lag or freeze and task manger should not have duplicate cursor windows opened maybe causing lags while editing code files

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.1.10 (user setup)
VSCode Version: 1.105.1
Commit: dacbe9b31599a253763e4910eb6ab38704653320
Date: 2026-04-13T11:39:16.806Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor