[Bug] Long-running output tasks trigger premature context limit with failed compaction

Resolved 💬 3 comments Opened Jan 2, 2026 by michalprusek Closed Jan 6, 2026

Bug Description
long running output waiting task always end up with ⎿ Context low · Run /compact to compact & continue

/compact

⎿ Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.0.76
  • Feedback ID: b4dc5ea7-0d62-4a1d-b838-6c301d8bd2ec

Errors

[{"error":"Error\n    at ak (/$bunfs/root/claude:59:1144)\n    at <anonymous> (/$bunfs/root/claude:60:10093)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T11:29:11.072Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/michalprusek/.local/share/claude/versions/2.0.76 (expected in multi-process scenarios)\n    at XZR (/$bunfs/root/claude:2430:2165)\n    at fUA (/$bunfs/root/claude:2430:1885)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T11:29:11.081Z"},{"error":"Error\n    at ak (/$bunfs/root/claude:59:1144)\n    at <anonymous> (/$bunfs/root/claude:60:10093)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T11:29:11.775Z"},{"error":"Error: Shell b063dbb is not running, so cannot be killed (status: completed)\n    at call (/$bunfs/root/claude:2840:1870)\n    at async Qo7 (/$bunfs/root/claude:2142:17437)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T11:45:43.907Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:801:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T11:55:11.903Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:801:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T12:23:26.326Z"},{"error":"Error: Request was aborted.\n    at _createMessage (/$bunfs/root/claude:458:3157)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T12:53:36.169Z"},{"error":"MaxFileReadTokenExceededError: File content (36959 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 Bw_ (/$bunfs/root/claude:957:12204)\n    at async call (/$bunfs/root/claude:966:1005)\n    at async <anonymous> (/$bunfs/root/claude:3440:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T13:13:34.723Z"},{"error":"MaxFileReadTokenExceededError: File content (39733 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 Bw_ (/$bunfs/root/claude:957:12204)\n    at async call (/$bunfs/root/claude:966:1005)\n    at async <anonymous> (/$bunfs/root/claude:3440:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T13:35:55.711Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201436 tokens > 200000 maximum\"},\"request_id\":\"req_011CWifkqwF4CEtNks61rCYR\"}\n    at generate (/$bunfs/root/claude:454:11098)\n    at makeRequest (/$bunfs/root/claude:801:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T13:57:52.472Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at QhR (/$bunfs/root/claude:1706:1690)\n    at async OqB (/$bunfs/root/claude:1780:3210)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T13:57:52.480Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 205744 tokens > 200000 maximum\"},\"request_id\":\"req_011CWifkxyez1yACGbTGGCr4\"}\n    at generate (/$bunfs/root/claude:454:11098)\n    at makeRequest (/$bunfs/root/claude:801:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T13:57:54.076Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201436 tokens > 200000 maximum\"},\"request_id\":\"req_011CWifradQs2o8Rd84KEHx3\"}\n    at generate (/$bunfs/root/claude:454:11098)\n    at makeRequest (/$bunfs/root/claude:801:5435)\n    at processTicksAndRejections (native:7:39)","t

Note: Error logs were truncated.

View original on GitHub ↗

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