[Bug] Context limit error shown despite available context remaining

Resolved 💬 4 comments Opened Feb 22, 2026 by Rabusek Closed Feb 25, 2026

Bug Description
Agent says i reached my context limit, but statusline cleary suggests i had 26% left

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.50
  • Feedback ID: 1e7aaa0d-7c36-4d3e-be45-33b5086da4c4

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/patrykraba/.local/share/claude/versions/2.1.50 (expected in multi-process scenarios)\n    at OzR (/$bunfs/root/claude:2600:2098)\n    at SbA (/$bunfs/root/claude:2600:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T00:26:14.990Z"},{"error":"FileTooLargeError: File content (1.1MB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at lj_ (/$bunfs/root/claude:960:820)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T00:29:55.679Z"},{"error":"MaxFileReadTokenExceededError: File content (56176 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at haB (/$bunfs/root/claude:4814:21391)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T00:45:27.883Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/patrykraba/projects/sztukaharmonii-landing/.vercel'\n    at lj_ (/$bunfs/root/claude:960:698)\n    at async QaB (/$bunfs/root/claude:4818:2402)\n    at async call (/$bunfs/root/claude:4823:6004)\n    at async <anonymous> (/$bunfs/root/claude:5003:1808)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T00:57:26.102Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201263 tokens > 200000 maximum\"},\"request_id\":\"req_011CYNE7CAYuEr5kA5sbTGsd\"}\n    at generate (/$bunfs/root/claude:262:28230)\n    at makeRequest (/$bunfs/root/claude:301:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T01:18:33.797Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at xET (/$bunfs/root/claude:2353:939)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T01:18:33.810Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 200118 tokens > 200000 maximum\"},\"request_id\":\"req_011CYNE7GBQ2aqDyLXmvu73h\"}\n    at generate (/$bunfs/root/claude:262:28230)\n    at makeRequest (/$bunfs/root/claude:301:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T01:18:35.041Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201263 tokens > 200000 maximum\"},\"request_id\":\"req_011CYNECbTucGrtEBcmmMmEh\"}\n    at generate (/$bunfs/root/claude:262:28230)\n    at makeRequest (/$bunfs/root/claude:301:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T01:19:46.922Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at xET (/$bunfs/root/claude:2353:939)\n    at async <anonymous> (/$bunfs/root/claude:2597:56)\n    at async JZ8 (/$bunfs/root/claude:5054:3673)\n    at async frB (/$bunfs/root/claude:5054:1067)\n    at async jy8 (/$bunfs/root/claude:11091:2400)\n    at async skR (/$bunfs/root/claude:11089:3419)\n    at async fM8 (/$bunfs/root/claude:11229:23453)\n    at async DMR (/$bunfs/root/claude:11229:22664)\n    at async <anonymous> (/$bunfs/root/claude:11239:8673)\n    at async <anonymous> (/$bunfs/root/claude:11221:5323)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T01:19:46.924Z"},{"error":"Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at <anonymous> (/$bunfs/root/claude:2598:189)\n    at async JZ8 (/$bunfs/root/claude:5054:3673)\n    at async frB (/$bunfs/root/claude:5054:1067)\n    at async jy8 (/$bunfs/root/claude:11091:2400)\n    at async skR (/$bunfs/root/claude:11089:3419)\n    at async fM8 (/$bunfs/root/claude:11229:23453)\n    at async DMR (/$bunfs/root/claude:11229:22664)\n    at async <anonymous> (/$bunfs/root/claude:11239:8673)\n    at async <anonymous> (/$bunfs/root/claude:11221:5323)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-22T01:19:46.924Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long:…

Note: Content was truncated.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗