[BUG] Autcompact runs forever and consumes all credits

Resolved 💬 3 comments Opened Dec 8, 2025 by waldoalvarez00 Closed Dec 8, 2025

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?

Some autocompact trigger infinite compact. Accounts Max 20x gets consumed on autopilot for no reason. This bug is serious. Appeared in last version. Right after compact, triggers a new compact that triggers a new compact and so on ... This is a serious bug. Usually do not happen but if only one triggers it, it consumes account if left unattended.

What Should Happen?

After autocompact there should not come a new autocompact

Error Messages/Logs

Steps to Reproduce

Many auto compacts run ok, eventually one appears that runs forever. This was not happening with previous version.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.0.61

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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