WINDOWS terminal: adding the letter "c" ( "cgit" instead of "git" for example)

Describe the Bug

When working with the terminal, the AI keeps adding the letter “c” before the command. For example, instead of “git”, it becomes “cgit”.
Also, the AI keeps ignoring the fact that the “&&” command doesn’t work in PowerShell, even though it’s written in the rules.

Steps to Reproduce

always

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.3.7 (user setup)
VSCode Version: 1.99.3
Commit: 5d56108ff2401c28f239aa2a527ef424ce7719a0
Date: 2025-07-31T04:16:31.276Z
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.26100

Does this stop you from using Cursor

No - Cursor works, but with this issue

2 Likes

hi @RED_YELLOW and welcome to Cursor Forum.

Thank you for your detailed report. We are tracking PowerShell issues and will work on improvements.

Agree, I have the same issue.

I have same problem. Tried everything. Nothing helped.

I have same

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The AI assistant in Cursor IDE automatically adds an incorrect “c” prefix to Python commands, causing terminal execution failures.

Steps to Reproduce

Ask the AI assistant to run a Python command
The assistant uses the run_terminal_cmd tool
The command is automatically modified from py to cpy
Terminal returns: ‘cpy’ is not recognized as a command

Expected Behavior

Commands should execute as py -c “…”
Terminal should successfully run Python commands
No automatic prefix modification should occur

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (user setup)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

When opening the cursor, the first 1-2 times the commands are executed without a bug, but then the cursor starts adding the letter “c”.

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

I have same

same for me, as temp fix swich to C:\\Program Files\\Git\\bin\\bash.exe
or other unix like terminal

3 Likes

I have same

We are preparing launch of Cursor 1.6 this week which will resolve this and other issues. We will keep you posted in the Forum about the new launch.

Went to check your solution, and found this in Cursor/Settings:

terminal.integrated.defaultProfile.windows = null

set it to PowerShell, and it worked. Ive had qc sumbols before commands, like
qcnpm –version

terminal.integrated.defaultProfile.windows = PowerShell

Ive got win11

1 Like

haha, it apears again. So its temporary solution. U can just close and start again, till comand to terminal will add symbold before.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.