Conversation Compaction Failure: Summary Generation Error

Resolved 💬 5 comments Opened Aug 14, 2025 by marcoscale98 Closed Jan 4, 2026

Bug Description
I launched the command '/compact' after several iterations and it returned this error "Error: Error during compaction: Error: Failed to generate conversation summary - response did not contain valid text content". Among the chat interations, there was also a usage limit reached message

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.81
  • Feedback ID: a1cac9e4-367d-4941-b7ce-496d1c6fd4d6

Errors

[{"error":"Error: Error normalizing tool input:[\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"new_string\"\n    ],\n    \"message\": \"Required\"\n  }\n]\n    at SN0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1855:667)\n    at cPB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1855:23642)\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:1855:19524\n    at async vN0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1855:5164)\n    at async Y01 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1855:19494)\n    at async lS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3141:3615)\n    at async lS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3141:5681)\n    at async lS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3141:5681)\n    at async lS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3141:5681)","timestamp":"2025-08-14T17:31:39.768Z"},{"error":"Error: Failed to generate conversation summary - response did not contain valid text content\n    at tb1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2351:1162)\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:2409:3855)\n    at async HL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3222:58)\n    at async KL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3212:3517)\n    at async JL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3212:1551)\n    at async NA1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3212:4643)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3368:29564","timestamp":"2025-08-14T17:44:25.767Z"},{"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:2410:229)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3222:58)\n    at async KL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3212:3517)\n    at async JL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3212:1551)\n    at async NA1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3212:4643)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3368:29564","timestamp":"2025-08-14T17:44:25.782Z"}]

View original on GitHub ↗

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