Serialize binary :invalid int 32:3212222

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

Request ID: 4590d66c-7179-4579-80a6-93e2ca506c89
ConnectError: [internal] serialize binary: invalid int 32: 3221225477
at dou.$endAiConnectTransportReportError (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:12706:475325)
at JXe._doInvokeHandler (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:13633:23170)
at JXe._invokeHandler (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:13633:22912)
at JXe._receiveRequest (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:13633:21544)
at JXe._receiveOneMessage (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:13633:20361)
at pMt.value (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:13633:18388)
at Ce._deliver (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at Ce.fire (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at jyt.fire (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:12691:12156)
at MessagePort. (vscode-file://vscode-app/c:/Users/pegasus/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:15681:18406)

Steps to Reproduce

can’t use ai agent what could I do with this situation

Operating System

Windows 10/11

Version Information

can’t use error

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known Windows issue related to how PowerShell returns exit codes. Your error shows a different number (3221225477 instead of the usual 4294967295), but the root cause is the same: int32 overflow during serialization.

Try switching to Command Prompt:

  1. Fully close Cursor
  2. Open Settings with Ctrl+,
  3. Find terminal.integrated.defaultProfile.windows
  4. Set it to “Command Prompt” instead of PowerShell
  5. Restart Cursor

This workaround doesn’t always help (especially with long commands), but it’s worth trying.

If it doesn’t help, please share:

  • Your Cursor version (Menu → About Cursor → Copy)
  • What command the Agent tried to run right before the error

The bug is logged and lots of users have hit it. Main thread with updates: Connection Error - Serialize Binary. You can subscribe there to follow the news.

A post was merged into an existing topic: Connection Error - Serialize Binary