Premature Context Loss in 200k Token Window (at 85% Usage)
Resolved 💬 3 comments Opened Jan 16, 2026 by mando03 Closed Jan 19, 2026
Bug Description
The context window is 200k tokens, but when the context windows is arround 85% blocked the usage and request compact or clear, lossing 15% of context (tokens)
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.1.9
- Feedback ID: 01e42a3d-059a-4cee-a305-578526eb2951
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01UCvsx8FCiMd3noqtSrFp48. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CXAZQK7Bt4zRMBWSuVpGo\"}\n at generate (/$bunfs/root/claude:939:2085)\n at makeRequest (/$bunfs/root/claude:956:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-16T06:09:59.712Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CXAgawjBTQ1JfCLeZioHr\"}\n at generate (/$bunfs/root/claude:939:2295)\n at makeRequest (/$bunfs/root/claude:956:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-16T07:44:11.783Z"},{"error":"SyntaxError: JSON Parse error: Expected '}'\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:65:711)\n at A (/$bunfs/root/claude:11:7260)\n at mS_ (/$bunfs/root/claude:1238:6897)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-16T07:44:11.785Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CXAgwAWSSB6gG327z7gHL\"}\n at generate (/$bunfs/root/claude:939:2295)\n at makeRequest (/$bunfs/root/claude:956:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-16T07:48:46.052Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗