[Bug] Context Window Management Fails on Single Message Session
Resolved 💬 3 comments Opened Oct 15, 2025 by sorcrr2023 Closed Oct 19, 2025
Bug Description
keeps on givine me context low and then i cant really compact when its the only message that i have sent in this session.
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.0.15
- Feedback ID: 3f3b420b-8aaf-4b5b-918d-6999a61dc27d
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 214564 tokens > 200000 maximum\"},\"request_id\":\"req_011CU9GFTgySB755ZJyviRWH\"}\n at N4.generate (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:428:25698)\n at Ky.makeStatusError (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:573:2117)\n at Ky.makeRequest (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:573:5330)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async lD1.model (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3219:19050)\n at async lD1 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2492:39781)\n at async awQ (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3219:19204)\n at async file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3219:13417\n at async zp0 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3219:4415)\n at async xB1 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3219:13387)","timestamp":"2025-10-15T16:01:06.141Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗