[Bug] Compacting Fails Repeatedly with Incorrect "Conversation Too Long" Error

Resolved 💬 7 comments Opened Oct 8, 2025 by Helmi Closed Nov 3, 2025

Bug Description
Compacting fails over and over again even far before any warning appears. The error then is "Conversation too long" while in fact it's not too long. Ending Claude code, restarting with with --continue and then compacting worked for me in 100% of the cases i tried this since i found out it works.

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.0.10
  • Feedback ID:

Errors

[{"error":"AxiosError: Request failed with status code 403\n    at pN (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:713:1075)\n    at Unzip.<anonymous> (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:714:9910)\n    at Unzip.emit (node:events:530:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at cQ1.request (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:716:2078)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async lIA (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:877:25947)","timestamp":"2025-10-08T09:45:03.080Z"},{"error":"AxiosError: Request failed with status code 403\n    at pN (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:713:1075)\n    at Unzip.<anonymous> (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:714:9910)\n    at Unzip.emit (node:events:530:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at cQ1.request (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:716:2078)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async qI6 (file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1379:470)\n    at async Promise.all (index 0)\n    at async file:///Users/helmi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1365:12886","timestamp":"2025-10-08T09:46:13.717Z"}]

View original on GitHub ↗

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