[Bug] Compaction Failure: Conversation Exceeds Token Limit

Resolved 💬 4 comments Opened Oct 2, 2025 by TinDang97 Closed Oct 5, 2025

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

/context

⎿  Context Usage 149k/200k tokens (74%)
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛝
⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛁ System prompt: 2.9k tokens (1.5%)
⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛝ ⛁ System tools: 16.3k tokens (8.2%)
⛝ ⛝ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛝ Reserved: 45.0k tokens (22.5%)
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ [autocompact + output tokens]
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ MCP tools: 44.1k tokens (22.0%)
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Custom agents: 3.7k tokens (1.8%)
⛁ ⛁ ⛁ ⛁ ⛀ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Memory files: 7.5k tokens (3.8%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Messages: 29.4k tokens (14.7%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Free space: 6k (3.0%)

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.1
  • Feedback ID:

Errors

[{"error":"Error\n    at XC (/$bunfs/root/claude:536:1083)\n    at z1 (/$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-10-01T17:01:04.662Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $z (/$bunfs/root/claude:1599:1192)\n    at map (native:1:11)\n    at d7 (/$bunfs/root/claude:1599:905)\n    at tGW (/$bunfs/root/claude:2765:9386)\n    at Kw (/$bunfs/root/claude:36:19415)\n    at $d (/$bunfs/root/claude:38:42805)\n    at u5 (/$bunfs/root/claude:38:38347)\n    at Hj (/$bunfs/root/claude:38:38275)\n    at Nw (/$bunfs/root/claude:38:38129)\n    at xF (/$bunfs/root/claude:38:35208)","timestamp":"2025-10-01T17:07:14.548Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $z (/$bunfs/root/claude:1599:1192)\n    at map (native:1:11)\n    at d7 (/$bunfs/root/claude:1599:905)\n    at tGW (/$bunfs/root/claude:2765:9386)\n    at Kw (/$bunfs/root/claude:36:19415)\n    at $d (/$bunfs/root/claude:38:42805)\n    at u5 (/$bunfs/root/claude:38:38347)\n    at Hj (/$bunfs/root/claude:38:38275)\n    at Nw (/$bunfs/root/claude:38:38129)\n    at xF (/$bunfs/root/claude:38:35208)","timestamp":"2025-10-01T17:07:14.553Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $z (/$bunfs/root/claude:1599:1192)\n    at map (native:1:11)\n    at d7 (/$bunfs/root/claude:1599:905)\n    at tGW (/$bunfs/root/claude:2765:9386)\n    at Kw (/$bunfs/root/claude:36:19415)\n    at $d (/$bunfs/root/claude:38:42805)\n    at u5 (/$bunfs/root/claude:38:38347)\n    at Hj (/$bunfs/root/claude:38:38275)\n    at Nw (/$bunfs/root/claude:38:38129)\n    at xF (/$bunfs/root/claude:38:35208)","timestamp":"2025-10-01T17:07:14.553Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $z (/$bunfs/root/claude:1599:1192)\n    at map (native:1:11)\n    at d7 (/$bunfs/root/claude:1599:905)\n    at tGW (/$bunfs/root/claude:2765:9386)\n    at Kw (/$bunfs/root/claude:36:19415)\n    at $d (/$bunfs/root/claude:38:42805)\n    at u5 (/$bunfs/root/claude:38:38347)\n    at Hj (/$bunfs/root/claude:38:38275)\n    at Nw (/$bunfs/root/claude:38:38129)\n    at xF (/$bunfs/root/claude:38:35208)","timestamp":"2025-10-01T17:07:14.557Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $z (/$bunfs/root/claude:1599:1192)\n    at map (native:1:11)\n    at d7 (/$bunfs/root/claude:1599:905)\n    at tGW (/$bunfs/root/claude:2765:9386)\n    at Kw (/$bunfs/root/claude:36:19415)\n    at $d (/$bunfs/root/claude:38:42805)\n    at u5 (/$bunfs/root/claude:38:38347)\n    at Hj (/$bunfs/roo

Note: Error logs were truncated.

View original on GitHub ↗

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