[Bug] Context length check incorrectly reports overflow within token budget

Resolved 💬 3 comments Opened Feb 10, 2026 by 0legSan Closed Feb 14, 2026

Bug Description
Context overflow error when it is not overflowing

Environment Info

  • Platform: darwin
  • Terminal: zed
  • Version: 2.1.38
  • Feedback ID: f42dea27-48ed-40e2-8885-98d69ff44502

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/mac/.local/share/claude/versions/2.1.38 (expected in multi-process scenarios)\n    at QVR (/$bunfs/root/claude:3622:2098)\n    at yMA (/$bunfs/root/claude:3622:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:24:51.844Z"},{"error":"Error: LSP config validation failed for .lsp.json in plugin vscode-langservers: [\n  {\n    \"expected\": \"record\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"html\",\n      \"extensionToLanguage\"\n    ],\n    \"message\": \"Invalid input: expected record, received undefined\"\n  },\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"languages\",\n      \"fileExtensions\"\n    ],\n    \"path\": [\n      \"html\"\n    ],\n    \"message\": \"Unrecognized keys: \\\"languages\\\", \\\"fileExtensions\\\"\"\n  },\n  {\n    \"expected\": \"record\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"css\",\n      \"extensionToLanguage\"\n    ],\n    \"message\": \"Invalid input: expected record, received undefined\"\n  },\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"languages\",\n      \"fileExtensions\"\n    ],\n    \"path\": [\n      \"css\"\n    ],\n    \"message\": \"Unrecognized keys: \\\"languages\\\", \\\"fileExtensions\\\"\"\n  }\n]\n    at G78 (/$bunfs/root/claude:2113:28007)\n    at async DLB (/$bunfs/root/claude:2113:30915)\n    at async HLB (/$bunfs/root/claude:2113:31213)\n    at async _ (/$bunfs/root/claude:2113:31784)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:24:52.943Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:358:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:25:36.670Z"},{"error":"MaxFileReadTokenExceededError: File content (25039 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 gwB (/$bunfs/root/claude:3290:3336)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:27:41.077Z"},{"error":"MaxFileReadTokenExceededError: File content (39283 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 gwB (/$bunfs/root/claude:3290:3336)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:27:41.541Z"},{"error":"MaxFileReadTokenExceededError: File content (41837 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 gwB (/$bunfs/root/claude:3290:3336)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:27:42.778Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at NhT (/$bunfs/root/claude:3301:939)\n    at async PPB (/$bunfs/root/claude:3386:2545)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:28:21.745Z"},{"error":"Error: No content found in user prompt message\n    at vWB (/$bunfs/root/claude:1964:351)\n    at Z$ (/$bunfs/root/claude:678:20801)\n    at eH (/$bunfs/root/claude:678:39204)\n    at WJ (/$bunfs/root/claude:678:49835)\n    at Ev (/$bunfs/root/claude:678:86124)\n    at aT (/$bunfs/root/claude:678:86096)\n    at jlT (/$bunfs/root/claude:678:85938)\n    at Np (/$bunfs/root/claude:678:81330)\n    at oR (/$bunfs/root/claude:678:6289)\n    at aDA (/$bunfs/root/claude:671:14001)","timestamp":"2026-02-10T18:28:21.763Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at NhT (/$bunfs/root/claude:3301:939)\n    at async PPB (/$bunfs/root/claude:3386:2545)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T18:29:09.603Z"}]

View original on GitHub ↗

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