[Bug] Context low warning triggers despite available token budget

Resolved 💬 3 comments Opened Dec 1, 2025 by saboroa-rgb Closed Dec 4, 2025

Bug Description
Context low · Run /compact to compact & continue, but there is space

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.0.55
  • Feedback ID: a16cbea8-b4d8-4906-885f-050d7b99aaf5

Errors

[{"error":"Error: Failed to fetch version from stable: Error: ECONNREFUSED\n    at K09 (B:/~BUN/root/claude.exe:2662:30754)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T20:16:06.218Z"},{"error":"Error: Failed to fetch version from stable: Error: ECONNREFUSED\n    at K09 (B:/~BUN/root/claude.exe:2662:30754)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T03:51:28.883Z"},{"error":"Error: Failed to fetch version from stable: Error: ECONNREFUSED\n    at K09 (B:/~BUN/root/claude.exe:2662:30754)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:23.392Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:14:14648)\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10252)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:1146)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:38.798Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:14:14648)\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10252)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:1146)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:38.850Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:14:14648)\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10252)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:1146)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:40.026Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:14:14648)\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10252)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:1146)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:40.078Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"},\"request_id\":\"req_011CVdi1HF8xSipSveTzEdAd\"}\n    at generate (B:/~BUN/root/claude.exe:412:9475)\n    at makeRequest (B:/~BUN/root/claude.exe:1259:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:56.381Z"},{"error":"SyntaxError: JSON Parse error: Expected '}'\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:76:729)\n    at A (B:/~BUN/root/claude.exe:11:6606)\n    at qrI (B:/~BUN/root/claude.exe:1407:2200)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:49:56.387Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"},\"request_id\":\"req_011CVdi1wSYSoCk7syAFv5MV\"}\n    at generate (B:/~BUN/root/claude.exe:412:9475)\n    at makeRequest (B:/~BUN/root/claude.exe:1259:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T07:50:04.774Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10674)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:3314)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T08:19:36.268Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207064 tokens > 200000 maximum\"},\"request_id\":\"req_011CVdwAEmppBvPw6oH9vaFk\"}\n    at generate (B:/~BUN/root/claude.exe:412:9441)\n    at makeRequest (B:/~BUN/root/claude.exe:1259:

Note: Error logs were truncated.

View original on GitHub ↗

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