Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Request ID: dfd27a3b-1060-4109-b2f4-cc0f559a4ae1
Error Message:ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7337:373472
Description:
When testing the runtime system in a C++ project, a serialization error occurs that interrupts the execution of AI assistant commands. The error appears specifically when attempting to run runtime tests (test_runtime.exe), while Cursor works normally in other cases.
Steps to Reproduce
- Open a C++ project with CMake
- Build the project using
cmake --build build --config Release --target test_runtime
- Attempt to run the runtime test through the AI assistant:
.\Release\test_runtime.exe
- The error occurs when trying to execute the test run command
- In other operations (editing, building, other tests) the error does not appear
Expected Behavior
The AI assistant should successfully execute runtime test commands without serialization errors.
Operating System
Windows 10/11
Current Cursor Version (Menu â About Cursor â Copy)
Version: 1.3.5
VSCode Version: 1.99.3
Commit: 9f33c2e793460d00cf95c06d957e1d1b8135fad0
Date: 2025-07-30T00:32:27.448Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows x64 10.0.26200
Additional Information
The error does not make Cursor completely unusable, but it interferes with runtime system testing, which is critical for development.
The error occurs only when attempting to run runtime tests
The project uses CMake and C++
The runtime test works when run manually through the command line
The problem is not related to internet connection
The error appears specifically when executing AI assistant commands related to testing
NEW!!!
ĐĐŸŃ ĐżĐ”ŃĐ”ĐČĐŸĐŽ ĐœĐ° Đ°ĐœĐłĐ»ĐžĐčŃĐșĐžĐč:
Additional information regarding the ConnectError:
Context of occurrence:
The error occurs exclusively when attempting to run compiled exe files through Cursorâs built-in terminal, not during normal code work.
Reproduction details:
- Creating a C++ project with an error handling system in Russian
- Compiling exe file through CMake
- When attempting to run
test_error.exe through Cursor AI, getting serialization error
- The same exe file runs normally through regular cmd
Project content causing the error:
- Error handling system with Russian messages
- Error, ErrorManager, ErrorUtils classes
- Output contains Unicode characters (emojis, Russian text)
- Structured error messages with codes
Suspected causes:
- Unicode characters - Russian text and emojis in program output
- Complex data structures - Error objects with multiple fields
- Object serialization - Cursor attempting to serialize runtime data
- Encoding - UTF-8/UTF-16 issues when transmitting data
Temporary solution:
Running exe files through external cmd completely resolves the issue.
Question:
Is it possible to configure Cursor so that it doesnât attempt to serialize exe file output, or is there a way to bypass this issue when working with programs containing Unicode characters?
Historical context:
-
This issue appeared recently - yesterday and before, similar exe files worked fine
-
Previously worked with Python projects without problems
-
Issue specifically emerged when working with C++ runtime system containing complex data structures
-
Suggests recent changes in Cursorâs serialization logic or increased sensitivity to certain data types
Comparison:
-
Python scripts: simple text output, no serialization issues
-
C++ exe files: complex objects, Unicode characters, structured error messages
-
Problem likely related to Cursorâs handling of compiled binary output vs interpreted language output
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor