[Bug] Compact fails with "Conversation too long" error on large chat histories

Resolved 💬 3 comments Opened Nov 30, 2025 by maor-lb Closed Dec 4, 2025

Bug Description
compact is failing with  Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.0.55
  • Feedback ID: 285363d2-c032-4df3-8b05-911d8736fd99

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207547 tokens > 200000 maximum\"},\"request_id\":\"req_011CVeGLtQz8BFP3TfAxn9at\"}\n    at generate (/$bunfs/root/claude:412:9441)\n    at makeRequest (/$bunfs/root/claude:1259:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:00.670Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at C8$ (/$bunfs/root/claude:1885:1691)\n    at async call (/$bunfs/root/claude:2964:56)\n    at async IW9 (/$bunfs/root/claude:2908:18026)\n    at async zcD (/$bunfs/root/claude:2908:16141)\n    at async MW9 (/$bunfs/root/claude:2915:1959)\n    at async aT (/$bunfs/root/claude:2913:1789)\n    at async rxD (/$bunfs/root/claude:2746:2317)\n    at async d5A (/$bunfs/root/claude:2746:1419)\n    at async <anonymous> (/$bunfs/root/claude:2761:1424)\n    at async <anonymous> (/$bunfs/root/claude:2743:5310)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:00.681Z"},{"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:2965:189)\n    at async IW9 (/$bunfs/root/claude:2908:18026)\n    at async zcD (/$bunfs/root/claude:2908:16141)\n    at async MW9 (/$bunfs/root/claude:2915:1959)\n    at async aT (/$bunfs/root/claude:2913:1789)\n    at async rxD (/$bunfs/root/claude:2746:2317)\n    at async d5A (/$bunfs/root/claude:2746:1419)\n    at async <anonymous> (/$bunfs/root/claude:2761:1424)\n    at async <anonymous> (/$bunfs/root/claude:2743:5310)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:00.682Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207674 tokens > 200000 maximum\"},\"request_id\":\"req_011CVeGN3Q1PagF7gVeLvZrx\"}\n    at generate (/$bunfs/root/claude:412:9441)\n    at makeRequest (/$bunfs/root/claude:1259:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:16.080Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at C8$ (/$bunfs/root/claude:1885:1691)\n    at async call (/$bunfs/root/claude:2964:56)\n    at async IW9 (/$bunfs/root/claude:2908:18026)\n    at async zcD (/$bunfs/root/claude:2908:16141)\n    at async MW9 (/$bunfs/root/claude:2915:1959)\n    at async aT (/$bunfs/root/claude:2913:1789)\n    at async rxD (/$bunfs/root/claude:2746:2317)\n    at async d5A (/$bunfs/root/claude:2746:1419)\n    at async <anonymous> (/$bunfs/root/claude:2761:1424)\n    at async <anonymous> (/$bunfs/root/claude:2743:5310)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:16.096Z"},{"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:2965:189)\n    at async IW9 (/$bunfs/root/claude:2908:18026)\n    at async zcD (/$bunfs/root/claude:2908:16141)\n    at async MW9 (/$bunfs/root/claude:2915:1959)\n    at async aT (/$bunfs/root/claude:2913:1789)\n    at async rxD (/$bunfs/root/claude:2746:2317)\n    at async d5A (/$bunfs/root/claude:2746:1419)\n    at async <anonymous> (/$bunfs/root/claude:2761:1424)\n    at async <anonymous> (/$bunfs/root/claude:2743:5310)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:16.096Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207797 tokens > 200000 maximum\"},\"request_id\":\"req_011CVeGNiXirzhB9sBaFz6GW\"}\n    at generate (/$bunfs/root/claude:412:9441)\n    at makeRequest (/$bunfs/root/claude:1259:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-30T14:54:25.352Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at C8$ (/$bunfs/root/claude:1885:1691)\n    at async call (unknown)\n    at async IW9 (/$bunfs/root/claude:2908:18026)\n    at async zcD (/$bunfs/root/claude:2908:16141)\n    at async MW9 (/$bunfs/root/claude:2915:1959)\n    at async 

Note: Error logs were truncated.

View original on GitHub ↗

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