The CLI agent command fails with ‘Append data exceeds maximum size of 52428800 bytes’ on every message, but the IDE agents work fine. I tried using the CLI agent version 2026.04.17 and 2026.04.15. Steps to try to fix the issue that didn’t work:
- Cleared out my cursor directory with
rm -rf ~/.cursorand recreated itcursor agent login- I think that rules out skills or history causing issues
- Killed any background agents that were running that I might not have been aware of
ps aux | grep -i cursorthenkill pid - Ran the agent with the test message
hiin an empty directory
I have the useHttp1ForAgent setting set to true for the agent because I’m on a VPN, otherwise the agent fails to connect. Using the troubleshooting steps above I’m still stuck with the error: “Error: Bad Request
Append data exceeds maximum size of 52428800 bytes”