Terminal auto-executes "q" command on launch in Cursor (not from my config)

Describe the Bug

Terminal auto-executes “q” command on launch in Cursor (not from my config)

Steps to Reproduce

Hi Cursor team,

I’m experiencing a strange issue with Cursor: every time I launch the terminal (either PowerShell or CMD), it automatically tries to execute the command q, which results in the following error:

q : The term ‘q’ is not recognized as the name of a cmdlet, function, script file, or operable program…

I have checked everything on my system:

  • PowerShell $PROFILE file: doesn’t exist
  • No shellArgs or terminal startup commands in my settings.json
  • No extensions that inject terminal commands
  • No such issue in regular PowerShell, CMD, or Git Bash

This only happens inside Cursor.

It seems that when Cursor initializes the terminal — or when the agent/AI tries to run something — it silently adds q before any command.

I even tried uninstalling and fully wiping all Cursor-related files, but the issue still comes back after reinstalling.

Could you please help clarify where this might be coming from?
Is this a known bug in Cursor’s agent or terminal integration?

Thanks in advance for your support!

Best regards,
[email protected]

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

1.1

Does this stop you from using Cursor

No - Cursor works, but with this issue

3 Likes