Compaction Failure: Conversation Length Exceeds Processing Limit
Resolved 💬 12 comments Opened Jun 15, 2025 by kurdin Closed Jan 10, 2026
Bug Description
/compact
⎿ Error: Error during compaction: Error: Conversation too long.
Press esc to go up a few messages and try again.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.24
- Feedback ID: 546b7692-9e82-472a-9528-e25979964a6f
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at HZ (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8863\n at Q (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at tJ (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8009)\n at HS (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:7090)\n at T6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11202)","timestamp":"2025-06-15T18:42:19.974Z"},{"error":"Error: Request was aborted.\n at Lw.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-15T18:49:08.574Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202576 tokens > 200000 maximum\"}}\n at h6.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1329:12578)\n at Lw.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:2082)\n at Lw.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async ME2.K11.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:22008)\n at async K11 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:12203)\n at async ME2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:21854)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:17103\n at async yt1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:5151)\n at async Fu (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:17073)","timestamp":"2025-06-15T18:55:16.093Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204960 tokens > 200000 maximum\"}}\n at h6.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1329:12578)\n at Lw.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:2082)\n at Lw.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async ME2.K11.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:22008)\n at async K11 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:12203)\n at async ME2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:21854)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:17103\n at async yt1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:5151)\n at async Fu (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:17073)","timestamp":"2025-06-15T19:18:36.915Z"},{"error":"Error: Conversation too long. Press esc to go up a few messages and try again.\n at BH1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1914:7444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1977:1674)\n at async FU5 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2431:58)\n at async Wp (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2427:19304)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2434:3648","timestamp":"2025-06-15T19:18:36.932Z"},{"error":"Error: Error during compaction: Error: Conversation too long. Press esc to go up a few messages and try again.\n at Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1977:1963)\n at process.processTicksAndRejections (node:internal/proc
Note: Error logs were truncated.
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗