claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Auto compact off, but asking me to compact before 100% context usage

Open zakariamehbi opened this issue 3 weeks ago • 7 comments

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?

Since updating from 2.1.2 to 2.1.7, Auto-compact is disabled. Context usage is at 66%, with a 3k buffer for compaction. However, it blocks and prompts to compact manually (at 66%) rather than reaching 100% and prompting to compact.

What Should Happen?

Let me reach 9X% context usage

Error Messages/Logs


Steps to Reproduce

Use Claude Code with auto-compact off until it reaches 6X% context.

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.2

Claude Code Version

2.1.7

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

zakariamehbi avatar Jan 15 '26 09:01 zakariamehbi

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/18264
  2. https://github.com/anthropics/claude-code/issues/18152
  3. https://github.com/anthropics/claude-code/issues/18241

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 15 '26 09:01 github-actions[bot]

Same issue. The tokens that Claude Code shows via the internal verbose settings is far from 200k, but still doesn't allow to continue. Ghostty terminal. I even believe that it worked with the 2.1.6 (installed via brew), but for some reason not now anymore (2.1.7. or reset?).

Image

Edit: Uninstalled Claude Code. Reinstalled via curl to 2.1.2. Continued the same conversation via claude --continue: passed the previous "Context limit reached" barrier was blocking. Updated to 2.1.6. Continues to work:

Image

cstelmach avatar Jan 15 '26 11:01 cstelmach

Seeing this as well.

mzxrai avatar Jan 15 '26 16:01 mzxrai

Confirmed I have the same issue

grantjayy avatar Jan 15 '26 17:01 grantjayy

Same here

alexanderradahl avatar Jan 16 '26 03:01 alexanderradahl

I got the same.... they arent addressing this. I got offered a refund and to close my account. Anthropic is falling apart I think.

john-savepoint avatar Jan 17 '26 11:01 john-savepoint

There is a workaround in https://github.com/anthropics/claude-code/issues/18152

dmurat avatar Jan 17 '26 11:01 dmurat