[BUG] Error: Error during compaction: Error: Failed to generate conversation summary - response did not contain valid text content

Resolved 💬 5 comments Opened Jan 4, 2026 by rhyadav Closed Feb 24, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

either during auto-compaction or when i run /compact i get the error -> Error during compaction: Error: Failed to generate conversation summary - response did not contain valid text content . I'm on linux and on latest version and this issue doesn't seem to be going away by itself and im consistently encoutering it

What Should Happen?

claude should be able to compact successfully

Error Messages/Logs

/compact
  ⎿  Error: Error during compaction: Error: Failed to generate conversation summary - response did not contain valid text content

Steps to Reproduce

/compact

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.70

Claude Code Version

2.0.76 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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