[Bug] Context window reporting inaccurate with 1M model at 200k usage

Resolved 💬 3 comments Opened Nov 20, 2025 by KynJoshua Closed Jan 19, 2026

Bug Description
Running 1M Context, but context low on 200k context use

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.0.47
  • Feedback ID: baee02f3-e569-48e6-bc0c-2baeffa7560e

Errors

[{"error":"MaxFileReadTokenExceededError: File content (28668 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 QQ2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1788:28272)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1797:963)\n    at async Fc5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:49869)","timestamp":"2025-11-20T01:03:50.093Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1105:4488)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1105:4217\n    at Array.map (<anonymous>)\n    at tK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1105:4208)\n    at sB2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1828:3681)\n    at kN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:105:19417)\n    at QQA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:107:42847)\n    at s9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:107:38379)\n    at nn (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:107:38307)\n    at cN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:107:38161)","timestamp":"2025-11-20T01:29:07.853Z"},{"error":"MaxFileReadTokenExceededError: File content (45355 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 QQ2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1788:28272)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1797:963)\n    at async Fc5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:49869)","timestamp":"2025-11-20T01:29:38.195Z"},{"error":"MaxFileReadTokenExceededError: File content (39454 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 QQ2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1788:28272)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1797:963)\n    at async Fc5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:49869)","timestamp":"2025-11-20T01:29:51.715Z"},{"error":"AggregateError\n    at jBA.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:49:49518)\n    at Kz.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:10022)\n    at Kz.emit (node:events:520:35)\n    at Kz.emit (node:domain:489:12)\n    at TW1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:66:1117)\n    at ClientRequest.emit (node:events:520:35)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:107:11)\n    at TLSSocket.socketErrorListener (node:_http_client:574:5)\n    at TLSSocket.emit (node:events:508:28)\n    at cFA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:69:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BJ0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4099:7682)","timestamp":"2025-11-20T01:32:25.249Z"},{"error":"MaxFileReadTokenExceededError: File content (39454 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 QQ2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1788:28272)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1797:963)\n    at async Fc5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:49869)","timestamp":"2025-11-20T02:21:14.587Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt

Note: Error logs were truncated.

View original on GitHub ↗

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