[Bug] Context limit reached error triggers prematurely before auto-compact activates

Resolved 💬 3 comments Opened Feb 17, 2026 by marciosete-cultureone Closed Feb 21, 2026

<img width="667" height="684" alt="Image" src="https://github.com/user-attachments/assets/f517c673-5432-4a54-9bee-0d915712a316" />

Bug Description
Now, often I'm getting "Context limit reached . /compact or /clear" before the context window finishes, before auto compact kicks in. /compact fail with the same message, /clear makes me lose all the work in the session. This is now happening several times per day

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.44
  • Feedback ID: c30cdf64-1326-4b60-a15c-d031fcebca08

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/marciosete/.local/share/claude/versions/2.1.44 (expected in multi-process scenarios)\n    at ZwR (/$bunfs/root/claude:3483:2098)\n    at LSA (/$bunfs/root/claude:3483:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:35:09.590Z"},{"error":"MaxFileReadTokenExceededError: File content (65240 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 Jz_ (/$bunfs/root/claude:1300:7592)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:37:06.610Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/marciosete/projects/Neu21/EUDA/euda-app/src/types'\n    at sY_ (/$bunfs/root/claude:1139:280)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:37:06.921Z"},{"error":"MaxFileReadTokenExceededError: File content (65240 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 Jz_ (/$bunfs/root/claude:1300:7592)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:37:09.312Z"},{"error":"MaxFileReadTokenExceededError: File content (65240 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 Jz_ (/$bunfs/root/claude:1300:7592)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:37:10.414Z"},{"error":"MaxFileReadTokenExceededError: File content (65240 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 Jz_ (/$bunfs/root/claude:1300:7592)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:37:34.962Z"},{"error":"MaxFileReadTokenExceededError: File content (65240 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 Jz_ (/$bunfs/root/claude:1300:7592)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:37:56.267Z"},{"error":"Error: File does not exist.\n    at call (/$bunfs/root/claude:1309:6225)\n    at async zh8 (/$bunfs/root/claude:3335:14119)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:43:15.338Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 210394 tokens > 200000 maximum\"},\"request_id\":\"req_011CYDbcnrbJR2eE2ioWzxRn\"}\n    at generate (/$bunfs/root/claude:327:8796)\n    at makeRequest (/$bunfs/root/claude:366:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:55:17.546Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at bET (/$bunfs/root/claude:3159:939)\n    at async hyB (/$bunfs/root/claude:3244:2545)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:55:17.552Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 209245 tokens > 200000 maximum\"},\"request_id\":\"req_011CYDbcqfknhGQWYuHMRcip\"}\n    at generate (/$bunfs/root/claude:327:8796)\n    at makeRequest (/$bunfs/root/claude:366:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:55:18.271Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 210630 tokens > 200000 maximum\"},\"request_id\":\"req_011CYDbcuE58BFZydkjiLMBL\"}\n    at generate (/$bunfs/root/claude:327:8796)\n    at makeRequest (/$bunfs/root/claude:366:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T11:55:19.322Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at bET (/$bunfs/root/claude:3159:939)\n    at async hyB (/$bunfs/root/claude:3244:2545)\n    at processTicksAndRejections…

Note: Content was truncated.

View original on GitHub ↗

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