Local documents cannot be used in Cursor:Append data exceeds maximum size of 52428800 bytes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Request ID: eea7729a-1945-4647-84db-16d25541d241
Bad Request Append data exceeds maximum size of 52428800 bytes
YLi: Bad Request Append data exceeds maximum size of 52428800 bytes
at rK_ (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:28926:24552)
at nK_ (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:28926:23543)
at dK_ (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:28927:6487)
at h8u.run (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:28927:11285)
at async xDn.runAgentLoop (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:41235:11960)
at async W1d.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:41305:12151)
at async W1d.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:41305:18486)
at async N3e.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29033:16809)
at async Va (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:40288:4233)

Steps to Reproduce

Local documents cannot be used in Cursor, but Cursor works normally when connected via SSH.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.1.17
VSCode Version: 1.105.1
Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
Date: 2026-04-19T19:33:58.189Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @AlinalLusong,

This error occurs when the data sent to our server exceeds 50 MB. There are three common causes – check them in order:

  1. Skills – If you have Skills installed (Cursor Settings > Skills), their summaries are sent with every request and can push the payload over the limit even for simple messages. Try removing or disabling any you don’t actively need. If you want to keep them available via /skillname slash commands without bloating requests, add this to each skill’s SKILL.md:

disable-model-invocation: true

  1. HTTP/2 disabled – Go to Settings, search for “HTTP/2”. If “Disable HTTP/2” is checked, data gets encoded less efficiently (roughly doubling the payload size). Try unchecking it.

  2. Large files in the project – If your local project contains large files (binaries, PDFs, images, node_modules), they can get pulled into context. Create a .cursorignore file in the project root to exclude heavy directories:

node_modules/
*.pdf
*.docx
images/
dist/
build/

Quick test: Open a completely empty folder and send “Hi.” If that works, the issue is in your project content or skills configuration.

This would also explain why it works via SSH but not locally – your local workspace likely has more files or skills installed that aren’t present in the SSH environment.

Others have reported the same issue with additional workarounds here.