[Bug] Compact Command Fails with "Conversation Too Long" Error
Resolved 💬 4 comments Opened Sep 14, 2025 by marcialpaulg Closed Nov 3, 2025
Bug Description/compact it says Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again. even tho my context is only 119k tokens.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.113
- Feedback ID: 7660496b-fe2f-48b9-8f2b-2696d17c5f6b
Errors
[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at Wz (/$bunfs/root/claude:1656:1192)\n at map (native:1:11)\n at T7 (/$bunfs/root/claude:1656:905)\n at EWW (/$bunfs/root/claude:2912:9543)\n at cq (/$bunfs/root/claude:47:19415)\n at uu (/$bunfs/root/claude:49:42805)\n at n5 (/$bunfs/root/claude:49:38347)\n at dx (/$bunfs/root/claude:49:38275)\n at Zw (/$bunfs/root/claude:49:38129)\n at qF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-14T17:21:22.154Z"},{"error":"Error: ### Result\nError: Tool \"browser_press_key\" does not handle the modal state.\n### Modal state\n- [File chooser]: can be handled by the \"browser_file_upload\" tool\n\n at XpG (/$bunfs/root/claude:1772:15933)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:01:54.687Z"},{"error":"Error: ### Result\nError: Ref e34 not found in the current page snapshot. Try capturing new snapshot.\n\n at XpG (/$bunfs/root/claude:1772:15933)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:02:54.655Z"},{"error":"Error: ### Result\nError: Ref e34 not found in the current page snapshot. Try capturing new snapshot.\n\n at XpG (/$bunfs/root/claude:1772:15933)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:05:23.750Z"},{"error":"Error: ### Result\nError: Ref e34 not found in the current page snapshot. Try capturing new snapshot.\n\n at XpG (/$bunfs/root/claude:1772:15933)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:07:49.711Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202103 tokens > 200000 maximum\"},\"request_id\":\"req_011CT8kQRrdVmJ4Q9vR2FQwK\"}\n at new V5 (unknown:1:28)\n at new hY (/$bunfs/root/claude:842:1962)\n at new iZ0 (unknown:1:28)\n at generate (/$bunfs/root/claude:842:2419)\n at makeRequest (/$bunfs/root/claude:859:5359)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:15:15.204Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at RR0 (/$bunfs/root/claude:2259:1492)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:15:15.217Z"},{"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:2260:210)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:15:15.219Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202103 tokens > 200000 maximum\"},\"request_id\":\"req_011CT8kfCGEdKqJQDP6zKrmK\"}\n at new V5 (unknown:1:28)\n at new hY (/$bunfs/root/claude:842:1962)\n at new iZ0 (unknown:1:28)\n at generate (/$bunfs/root/claude:842:2419)\n at makeRequest (/$bunfs/root/claude:859:5359)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:18:35.166Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at RR0 (/$bunfs/root/claude:2259:1492)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:18:35.168Z"},{"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:2260:210)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-14T18:18:35.169Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗