claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Context Compaction Fails: Conversation Length Limit Exceeded

Open AgentiLoop opened this issue 1 year ago • 3 comments

Bug Description

⎿  Context low · Run /compact to compact & continue

/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: Apple_Terminal
  • Version: 2.0.14
  • Feedback ID: 31162eaa-955a-407c-9d2b-09732eda6830

Errors

[{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T22:40:38.287Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:540:9)","timestamp":"2025-10-13T22:43:50.489Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T22:45:10.403Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T22:47:05.469Z"},{"error":"Error: Request was aborted.\n    at tS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:3850)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T22:48:25.051Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:540:9)","timestamp":"2025-10-13T23:01:38.354Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T23:02:29.352Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T23:06:12.690Z"},{"error":"Error: Request was aborted.\n    at tS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:3850)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T23:14:14.618Z"},{"error":"Error: Request was aborted.\n    at tS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:3850)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T23:21:37.554Z"},{"error":"Error: Request was aborted.\n    at yD1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2492:39698)\n    at yD1.next (<anonymous>)\n    at KwQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3209:15199)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3209:13417\n    at async sl0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3209:4415)\n    at async wB1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3209:13387)\n    at async KP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2492:56105)\n    at async KP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2492:58597)\n    at async KP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2492:58597)","timestamp":"2025-10-13T23:24:34.943Z"},{"error":"Error: Request was aborted.\n    at tS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:3850)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-13T23:24:47.298Z"},{"error":"Error: Request was aborted.\n    at nc._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:540:9)","timestamp":"2025-10-14T01:24:19.493Z"},{"error":"Error: Request was aborted.\n    a

Note: Error logs were truncated.

AgentiLoop avatar Oct 14 '25 03:10 AgentiLoop

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/9501
  2. https://github.com/anthropics/claude-code/issues/8330
  3. https://github.com/anthropics/claude-code/issues/8050

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 14 '25 03:10 github-actions[bot]

This issue has been automatically closed as a duplicate of #9501.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 17 '25 09:10 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Oct 24 '25 14:10 github-actions[bot]