Request Size Exceeds Model Context Window During Compaction
Resolved 💬 3 comments Opened Aug 22, 2025 by alexfeiner Closed Aug 26, 2025
Bug Description
Error: Error during compaction: Error: API Error: 413
{"type":"error","error":{"type":"invalid_request_error","message":"Request
size exceeds model context
window"},"request_id":"req_011CSPPiTdw23HFj1vvSCyHv"}
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 1.0.86
- Feedback ID: b8b50629-2a4d-47c7-be80-540c506dd75d
Errors
[{"error":"Error: Request was aborted.\n at H71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:7955)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-21T22:13:38.645Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 205414 tokens > 200000 maximum\"},\"request_id\":\"req_011CSMhDpvdFbyohqyoshsYg\"}\n at b4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2412)\n at dP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n at dP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-21T23:06:46.990Z"},{"error":"Error: Invalid URL\n at dhB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2945:5128)\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2945:9308)\n at call.next (<anonymous>)\n at cN8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3400:10483)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async puB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3400:6802)\n at async L1B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1776:3411)\n at async XQB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1950:2562)\n at async dN8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3400:6013)\n at async gN8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3400:5385)","timestamp":"2025-08-21T23:10:46.434Z"},{"error":"Error: Request was aborted.\n at H71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:7955)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at runNextTicks (node:internal/process/task_queues:64:3)\n at process.processTimers (node:internal/timers:509:9)","timestamp":"2025-08-21T23:18:56.150Z"},{"error":"Error: Request was aborted.\n at dP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:3840)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-21T23:21:44.041Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1761:1184)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1761:912\n at Array.map (<anonymous>)\n at IW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1761:903)\n at kgB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3053:9071)\n at gR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n at Qf (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n at Af (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n at Pj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n at DO (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)","timestamp":"2025-08-21T23:51:21.306Z"},{"error":"Error: Request was aborted.\n at dP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:3840)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-22T00:05:27.925Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1761:1184)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1761:912\n at Array.map (<anonymous>)\n at IW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1761:903)\n at kgB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3053:9071)\n at gR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n at Qf (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n at Af (file
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗