claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Context limit reached with 32k tokens free space and auto-compact disabled

Open tamasarpad opened this issue 4 weeks ago • 6 comments

Bug Description I get context limit reached despite auto compact turned off and have plenty of space left: ⎿  Context limit reached · /compact or /clear to continue

✻ Brewed for 9m 45s

❯ /config ⎿ Config dialog dismissed

❯ /context ⎿ Context Usage ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ claude-opus-4-5-20251101 · 165k/200k tokens (82%) ⛀ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ System prompt: 3.8k tokens (1.9%) ⛀ ⛀ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ System tools: 17.1k tokens (8.5%) ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ MCP tools: 17.9k tokens (8.9%) ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Memory files: 195 tokens (0.1%) ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Skills: 279 tokens (0.1%) ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Messages: 125.8k tokens (62.9%) ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Compact buffer: 3.0k tokens (1.5%) ⛁ ⛁ ⛁ ⛁ ⛁ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Free space: 32k (16.0%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ ⛀

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.7
  • Feedback ID: 8286d550-4029-46b0-b160-6c9f42713f30

Errors

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:858:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-14T10:32:25.388Z"},{"error":"MaxFileReadTokenExceededError: File content (37054 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 Qk_ (/$bunfs/root/claude:1609:13323)\n    at async call (/$bunfs/root/claude:1618:1005)\n    at async <anonymous> (/$bunfs/root/claude:2898:1561)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-14T11:07:58.081Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:858:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-14T11:09:54.536Z"},{"error":"Error: Request was aborted.\n    at _createMessage (/$bunfs/root/claude:445:3157)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-14T11:11:56.242Z"},{"error":"MaxFileReadTokenExceededError: File content (37054 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 Qk_ (/$bunfs/root/claude:1609:13323)\n    at async call (/$bunfs/root/claude:1618:1005)\n    at async <anonymous> (/$bunfs/root/claude:2898:1561)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-14T13:15:17.464Z"},{"error":"MaxFileReadTokenExceededError: File content (37054 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 Qk_ (/$bunfs/root/claude:1609:13323)\n    at async call (/$bunfs/root/claude:1618:1005)\n    at async <anonymous> (/$bunfs/root/claude:2898:1561)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-14T13:15:58.337Z"}]

tamasarpad avatar Jan 14 '26 14:01 tamasarpad