[Bug] Compaction fails with "Conversation too long" error repeatedly
Resolved 💬 4 comments Opened Feb 6, 2026 by Ola-Yeenca Closed Feb 10, 2026
Bug Description
❯ /compact
⎿ Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few
messages and try again.
❯ /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: vscode
- Version: 2.1.34
- Feedback ID: f34adb69-c819-493d-ba69-18a1b120a590
Errors
[{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at sj1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3351:934)\n at async Object.JdY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3640:47)\n at async NGY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:3460)\n at async Rh4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:1025)\n at async eOz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:2484)\n at async NT6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6405:3743)\n at async K_z (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:5464)\n at async TT6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:4662)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6420:7196\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6322:5390","timestamp":"2026-02-06T18:37:22.682Z"},{"error":"Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at Object.JdY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3641:185)\n at async NGY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:3460)\n at async Rh4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:1025)\n at async eOz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:2484)\n at async NT6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6405:3743)\n at async K_z (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:5464)\n at async TT6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:4662)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6420:7196\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6322:5390","timestamp":"2026-02-06T18:37:22.682Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at sj1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3351:934)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.JdY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3640:47)\n at async NGY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:3460)\n at async Rh4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:1025)\n at async eOz (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6407:2484)\n at async NT6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6405:3743)\n at async K_z (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.j…
Note: Content was truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗