Agent chat crashes Cursor with an internal serialization error (invalid int32: 2316632065) when the user on Windows 11 asks the AI to install Python

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

During Agent chat in Cursor IDE, an internal serialization error occurs: [internal] serialize binary: invalid int 32: 2316632065. The application attempts to serialize the value 2,316,632,065 as a 32-bit signed integer, but it exceeds the valid int32 range (-2,147,483,648 to 2,147,483,647). This triggers a crash or failure in the chat flow. The error originates from the workbench main process and appears to occur in the Agent backend communication or response handling. Reproduction is intermittent.

Steps to Reproduce

Open Cursor IDE on Windows 11
2. Open the Agent (AI chat) panel
3. Tell the AI your Windows version (e.g. “I’m on Windows 11”) and ask it to install Python
4. The error occurs during the conversation

Operating System

Windows 10/11

Version Information

Version: 2.4.28 (user setup)
VSCode Version: 1.105.1
Commit: f3f5cec40024283013878b50c4f9be4002e0b580
Date: 2026-02-03T00:56:18.293Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Auto

Additional Information

Cursor IDE Bug Report

Report Type

Internal Runtime Error / Crash

Describe the Bug

During an Agent chat session, Cursor throws an internal serialization error and stops working. The user stated they were on Windows 11 and asked the AI to install Python. Shortly after, the error occurred.

Error Message

[internal] serialize binary: invalid int 32: 2316632065

Full Stack Trace

at tpf (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9097:38348)
at Xmf (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9097:37251)
at gpf (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9098:5088)
at yva.run (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9098:9098)
at async Wyt.runAgentLoop (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:34198:57104)
at async ngc.streamFromAgentBackend (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:34247:7835)
at async ngc.getAgentStreamResponse (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:34247:8576)
at async OTe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9172:14624)
at async Xi (vscode-file://vscode-app/d:/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32996:3808)

Steps to Reproduce

  1. Open Cursor IDE on Windows 11
  2. Open the Agent (AI chat) panel
  3. Tell the AI your Windows version (e.g. “I’m on Windows 11”) and ask it to install Python
  4. The error occurs during the conversation

Technical Analysis

  • Error Type: During serialization, an attempt is made to write the value 2316632065 into a 32-bit signed integer, which exceeds the valid range
  • int32 Valid Range: -2,147,483,648 to 2,147,483,647
  • Problematic Value: 2,316,632,065 (exceeds maximum 2,147,483,647)
  • Likely Cause: A numeric field in the data returned or processed by the Agent backend exceeds the expected int32 range

Attempted Solutions

  • Restart Cursor IDE
  • Restart computer
  • Issue persists

Environment

  • OS: Windows 11 (build 10.0.26200, 25H2)
  • Cursor Version: Please fill in (check Help > About)
  • Reproduction Frequency: Intermittent

Additional Notes

The error occurs during the Agent chat flow and may be related to conversation length, response data size, or certain request types. The bug is unlikely to be Windows-specific — it appears to be an internal Cursor/application issue (int32 overflow during serialization) rather than an OS compatibility problem.


Submission: You can submit this report via:

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

This is a known issue on Windows. The error happens when the Agent runs commands in the terminal and gets an invalid exit code that can’t fit into an int32 during serialization. Your value 2316632065 is different, but it’s the same root cause.

Try switching to Command Prompt:

  • Completely close Cursor
  • Open Settings with Ctrl+,
  • Find terminal.integrated.defaultProfile.windows
  • Set it to “Command Prompt” instead of PowerShell
  • Restart Cursor

Just a heads up, this workaround doesn’t always help, especially with long commands. If it doesn’t work, let me know.

Main thread with updates: Connection Error - Serialize Binary
You can subscribe there to follow updates.

Hi Dean Rie thanks for the help! I followed the workaround (fully closed Cursor, set terminal.integrated.defaultProfile.windows to Command Prompt instead of PowerShell, then restarted), but I’m still seeing the same “Connection Error - Serialize Binary” issue. The invalid exit code I’m getting is 2316632065.

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