Compact Command Execution Failure After Plan Cancellation
Resolved 💬 6 comments Opened Jul 30, 2025 by rahulagarwak-ds Closed Jan 6, 2026
Bug Description
claude keeps on asking for compact command run but it errors out and is not letting me do anything, by the way this started when I cancelled my plan but I still have 9 days left in the plan expiry
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.63
- Feedback ID: e9c6420d-89f0-460f-b3cd-5c067682680e
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 p7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:48959\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14420)\n at kJ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:46397)\n at XH (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:45264)\n at Y9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:51585)","timestamp":"2025-07-30T20:42:08.307Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207685 tokens > 200000 maximum\"}}\n at i4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at YP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at YP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async SvB.dG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2960:14365)\n at async dG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2485:5642)\n at async SvB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2960:14216)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2960:9271\n at async hL0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2960:1690)\n at async ee (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2960:9241)","timestamp":"2025-07-30T20:42:28.906Z"},{"error":"Error: Failed to generate conversation summary - response did not contain valid text content\n at Xx1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1955:1154)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1955:6138)\n at async XV8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2660:73)\n at async JV8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2650:3530)\n at async z01 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2650:4522)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2990:27599","timestamp":"2025-07-30T20:42:38.240Z"},{"error":"Error: Error during compaction: Error: Failed to generate conversation summary - response did not contain valid text content\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1956:229)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async XV8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2660:73)\n at async JV8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2650:3530)\n at async z01 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2650:4522)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2990:27599","timestamp":"2025-07-30T20:42:38.241Z"},{"error":"Error: Failed to generate conversation summary - response did not contain valid text content\n at Xx1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1955:1154)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1955:6138)\n at async XV8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2660:73)\n at async JV8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2650:3530)\n at async z01 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2650:4522)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2990:27599","timestamp":"2025-07-
Note: Error logs were truncated.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗