[BUG] Compact failed even having 26% context.

Resolved 💬 4 comments Opened Jul 1, 2025 by liaolunhui Closed Aug 20, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • Claude CLI version: 1.0.38
  • Operating System: Windows 11
  • Terminal: Claude code IDEA plugin 1.0.9-beta built-in terminal

Bug Description

Compact failed even having 26% context.

Steps to Reproduce

  1. ask it to do thing
  2. Claude code said:  Context low · Run /compact to compact & continue
  3. /compact
  4. Claude code said: Error: Error during compaction: Error: Conversation too long. Press esc to go up a few messages and try again.

Expected Behavior

Do it right

Actual Behavior

Compact failed even having 26% context.

!Image

Additional Context

!Image

View original on GitHub ↗

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