Chat Breaks whenever cmake builds

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hello my problem is that when i have my chat right with my ai dosent matter the model, whenever i let the model (i have allow all) do a command in cmd, It then just stops And gives a “connection error”, i do resume or try to chat again and say continue but instantly gives the same error, i do TRY again and it works but then when it trys to run the command it gives the connection error as if its a glitch and crashing it. I know for sure i have no wifi issue or anything because it always worked i check i dont have no vpns. It even says success below the command.

COMMAND IT RUNS BUT THEN CRASHES:
cmake --build build2 --config Release --target Client

COMMAND OUTPUT:
CMake is re-running because C:/Users/Leonzzz/Documents/rblxgameengine/build2/CMakeFiles/generate.stamp is out-of-date.
the file ‘C:/Users/Leonzzz/Documents/rblxgameengine/CMakeLists.txt’
is newer than ‘C:/Users/Leonzzz/Documents/rblxgameengine/build2/CMakeFiles/generate.stamp.depend’
result=‘-1’
– Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:130:
Parse error. Expected “(”, got unquoted argument with text “Client…”.

CMake Configure step failed. Build files cannot be regenerated correctly.

Steps to Reproduce

When ever i chat and the chat/ai runs the command “cmake --build build2 --config Release --target Client”

Expected Behavior

It says “Connection Error” and i cant proceed and i click retry and it works but then happens when the ai runs that command.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.26 (system setup)
VSCode Version: 1.105.1
Commit: f628a4761be40b8869ca61a6189cafd14756dff0
Date: 2025-11-24T05:39:06.655Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Any AI does it.

For AI issues: add Request ID with privacy disabled

Request ID: 782afc37-fe01-40b0-a31c-c2689bf8f35a

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report.

From the output, the cmake command is actually failing with a parse error in your CMakeLists.txt at line 130:

CMake Error at CMakeLists.txt:130:
	Parse error. Expected "(", got unquoted argument with text "Client..."

The connection error is likely being triggered by this failing command. Please try these steps:

  1. Fix the syntax error in CMakeLists.txt:

    • Check line 130 in CMakeLists.txt. There’s probably a missing parenthesis or a syntax issue near “Client”.
    • Run the same cmake command manually in your terminal and make sure it works before letting Agent run it.
  2. Try the Legacy Terminal Tool workaround (a known fix for Windows terminal issues):

    • Open Cursor settings Ctrl+Shift+J
    • Go to the Agents tab → “Inline Editing & Terminal”
    • Enable “Legacy Terminal Tool”
    • Press Ctrl+Shift+P → “Terminal: Kill All Terminals”
    • Fully restart Cursor
    • Try again

The legacy terminal has already helped other users with similar command execution issues on Windows. Let me know if this fixes the issue.

1 Like

thanks!