[Bug] Compaction fails with "Conversation too long" error despite available context

Resolved 💬 3 comments Opened Dec 17, 2025 by CyborTronik Closed Dec 21, 2025

Bug Description
the following issue makes no sense in terms of productivity. That bring very sad sentiment about claude, no choice but to use other tool for now:
⏺ Background command "Run full make pipeline to validate refactored code" completed (exit code 0).
⎿  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: iTerm.app
  • Version: 2.0.70
  • Feedback ID:

Errors

[{"error":"Error\n    at ab (/$bunfs/root/claude:59:1143)\n    at <anonymous> (/$bunfs/root/claude:60:10084)\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:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T23:26:58.825Z"},{"error":"Error\n    at ab (/$bunfs/root/claude:59:1143)\n    at <anonymous> (/$bunfs/root/claude:60:10084)\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:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T23:26:59.721Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:750:3939)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-16T23:34:14.420Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212959 tokens > 200000 maximum\"},\"request_id\":\"req_011CWCA8SPejkYhdQDHU2TEe\"}\n    at generate (/$bunfs/root/claude:413:10836)\n    at makeRequest (/$bunfs/root/claude:750:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-17T11:11:31.487Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212955 tokens > 200000 maximum\"},\"request_id\":\"req_011CWCAYj4RFoKeCnfKe7NPT\"}\n    at generate (/$bunfs/root/claude:413:10836)\n    at makeRequest (/$bunfs/root/claude:750:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-17T11:17:01.151Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 211637 tokens > 200000 maximum\"},\"request_id\":\"req_011CWCBMWH2yBpm32dwkRsyt\"}\n    at generate (/$bunfs/root/claude:413:10836)\n    at makeRequest (/$bunfs/root/claude:750:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-17T11:27:37.024Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at K1R (/$bunfs/root/claude:1596:1680)\n    at async call (/$bunfs/root/claude:3389:56)\n    at async vR7 (/$bunfs/root/claude:2316:4452)\n    at async xu_ (/$bunfs/root/claude:2316:2599)\n    at async _H7 (/$bunfs/root/claude:2693:2034)\n    at async wk (/$bunfs/root/claude:2691:569)\n    at async DH7 (/$bunfs/root/claude:2693:4242)\n    at async GqR (/$bunfs/root/claude:2693:3431)\n    at async <anonymous> (/$bunfs/root/claude:2711:3161)\n    at async <anonymous> (/$bunfs/root/claude:2678:9603)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-17T11:27:37.025Z"},{"error":"Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at call (/$bunfs/root/claude:3390:189)\n    at async vR7 (/$bunfs/root/claude:2316:4452)\n    at async xu_ (/$bunfs/root/claude:2316:2599)\n    at async _H7 (/$bunfs/root/claude:2693:2034)\n    at async wk (/$bunfs/root/claude:2691:569)\n    at async DH7 (/$bunfs/root/claude:2693:4242)\n    at async GqR (/$bunfs/root/claude:2693:3431)\n    at async <anonymous> (/$bunfs/root/claude:2711:3161)\n    at async <anonymous> (/$bunfs/root/claude:2678:9603)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-17T11:27:37.026Z"},{"error":"Error\n    at ab (/$bunfs/root/claude:59:1143)\n    at <anonymous> (/$bunfs/root/claude:60:10084)\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:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-17T15:15:02.573Z"}]

View original on GitHub ↗

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