[BUG] Compact is now being run automatically

Resolved 💬 6 comments Opened Mar 20, 2025 by LoganDark Closed Mar 26, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.52 (Claude Code)
  • Operating System: macOS 15.3.2
  • Terminal: iTerm2

Bug Description

Claude Code now runs /compact automatically when context space is low.

Steps to Reproduce

  1. long conversation

Expected Behavior

When context space is low, I usually finish my current task before running /compact. This is because /compact causes Claude to lose all existing context, such as the files that it had reviewed to inform its implementation. After /compact, its output can no longer be trusted and it cannot complete the task without starting over. That is why I finish completing the task before running /compact.

Actual Behavior

/compact was run automatically when context space began to run out, erasing all the research that Claude had done for the implementation of my request, and ruining its ability to actually properly complete the task.

Additional Context

Before this, there was only an indicator when context space was running low, and I was free to allow Claude to finish a properly informed implementation before running /compact by choice.

View original on GitHub ↗

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