Agent sends spurious `q^C^D` commands with default terminal "Command Prompt"

Describe the Bug

In chat (agent mode), command invocations are followed up with a spurious second invocation of q^C^D, which fails with error:

'q♦♥' is not recognized as an internal or external command, operable program or batch file.

Preconditions:

  • default terminal is set to “Command Prompt”

Steps to Reproduce

  1. Start a new chat
  2. Prompt: “run command whoami.exe

Expected Behavior

Chat terminal output shows the result of running whoami.exe

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.7 (user setup)
VSCode Version: 1.96.2
Commit: 7111807980fa9c93aedd455ffa44b682c0dc1350
Date: 2025-07-01T07:38:05.103Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22621

Additional Information

Encountered when trying to prompt the agent to interact with Visual Studio build tools.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hey, try this:

This is apparently solved in 1.2.0

Has only happened to me once on 1.2.0 but I’m assuming its more user settings and terminal explicit cmds that is being forced via Powershell. I have to use comprehensive rules & “prompts” in order to have it use the proper string of commands for when I run .ps1 files etc. in order to avoid this.

For some reason it always wants to do && which doesn’t work.