Auto Keeps showing Connection Failed Intermittently

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Keep getting this error message when using auto. Recently in the past month this seem to happen more frequently, not to mention in the last hour the cursor IDE has been really slow and lagging, which has also caused issues with slowing my mac down.

Connection failed. If the problem persists, please check your internet connection or VPN.

Steps to Reproduce

Presumeing this is either a AI problem or software bug?

Operating System

MacOS

Version Information

Version: 2.4.23 (Universal)
VSCode Version: 1.105.1
Commit: 379934e04d2b3290cf7aefa14560f942e4212920
Date: 2026-01-29T21:24:23.350Z
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: Darwin arm64 25.2.0

For AI issues: which model did you use?

Auto

For AI issues: add Request ID with privacy disabled

Request ID: d85fe6dd-0f49-4f46-8a8e-9fc32ebcbfba
[invalid_argument] Request is empty
LTe: [invalid_argument] Request is empty
at kmf (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9095:38337)
at Cmf (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9095:37240)
at $mf (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9096:4395)
at ova.run (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9096:8170)
at async qyt.runAgentLoop (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34193:57047)
at async Wpc.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34242:7695)
at async Wpc.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34242:8436)
at async FTe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:9170:14575)
at async $i (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:32991:3808)

Does this stop you from using Cursor

Yes - Cursor is unusable

follow up, figured out having a 300mb PDF file in the repo caused cursor to lag super bad, even when the file wasnt opened.

Hey, thanks for the report and for following up with the PDF file, that’s really helpful info.

About the lag, good job finding the cause. PDF files should be automatically ignored during indexing (with the default settings), but a 300 MB file clearly affected performance somehow. To make sure it’s excluded, you can add this to .cursorignore in the project root:

filename.pdf

This will fully block access to the file for all AI features.

About the connection errors, quick question: after removing or excluding the PDF file, do you still see the “Connection failed” and “[invalid_argument] Request is empty” errors?

If yes, please run diagnostics: Cursor Settings > Network > Run Diagnostics and share the results.

Once I removed the PDF file from the project the connection issues fix it self and was working again