[Bug] Compaction Fails: Conversation Too Long Error
Resolved 💬 3 comments Opened Sep 26, 2025 by weisisheng Closed Sep 29, 2025
Bug Description
Trying to do a /compact with only a couple of percentage left before auto compact and get this error: 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: vscode
- Version: 1.0.124
- Feedback ID:
Errors
[{"error":"Error\n at ZC (/$bunfs/root/claude:536:1083)\n at Q1 (/$bunfs/root/claude:537:9957)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:539:2105)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T01:19:02.206Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 209683 tokens > 200000 maximum\"},\"request_id\":\"req_011CTWFoeLZzVxcYS77meYeo\"}\n at new H5 (unknown:1:28)\n at new jY (/$bunfs/root/claude:861:1962)\n at new tZ0 (unknown:1:28)\n at generate (/$bunfs/root/claude:861:2419)\n at makeRequest (/$bunfs/root/claude:878:5359)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T02:53:16.204Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201129 tokens > 200000 maximum\"},\"request_id\":\"req_011CTWFzZURmNgwUfqrgPpAE\"}\n at new H5 (unknown:1:28)\n at new jY (/$bunfs/root/claude:861:1962)\n at new tZ0 (unknown:1:28)\n at generate (/$bunfs/root/claude:861:2419)\n at makeRequest (/$bunfs/root/claude:878:5359)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T02:55:44.540Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at uR0 (/$bunfs/root/claude:2092:1573)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T02:55:44.544Z"},{"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:2093:210)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T02:55:44.544Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 209683 tokens > 200000 maximum\"},\"request_id\":\"req_011CTWGDhMZ8FUzTsRcQoNYT\"}\n at new H5 (unknown:1:28)\n at new jY (/$bunfs/root/claude:861:1962)\n at new tZ0 (unknown:1:28)\n at generate (/$bunfs/root/claude:861:2419)\n at makeRequest (/$bunfs/root/claude:878:5359)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T02:58:42.491Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 209683 tokens > 200000 maximum\"},\"request_id\":\"req_011CTWGS7yyNHZS556Xw7bEb\"}\n at new H5 (unknown:1:28)\n at new jY (/$bunfs/root/claude:861:1962)\n at new tZ0 (unknown:1:28)\n at generate (/$bunfs/root/claude:861:2419)\n at makeRequest (/$bunfs/root/claude:878:5359)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T03:01:31.133Z"},{"error":"Error\n at ZC (/$bunfs/root/claude:536:1083)\n at Q1 (/$bunfs/root/claude:537:9957)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:539:2105)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-26T03:03:59.375Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗