claude-code - 💡(How to fix) Fix [Bug] Auto-compact triggers at 16% despite CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=30 set [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53358Fetched 2026-04-26 05:17:51
View on GitHub
Comments
3
Participants
3
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×3
RAW_BUFFERClick to expand / collapse

Bug Description auto compaction is broken , gets triggered at 16 % with Opus 4.7 for some reason , I have checked the environment variables in project as well as root setting.json , I have nothing set at 16 % while I do have CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=30 set at project level , i was using v116 , it was working fine then , issue started after updating to v119

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.119
  • Feedback ID: 86665a77-a336-47c2-9427-25fa04e8e6fe

extent analysis

TL;DR

The auto compaction issue may be resolved by checking the override settings and environment variables, particularly the CLAUDE_AUTOCOMPACT_PCT_OVERRIDE variable.

Guidance

  • Verify that the CLAUDE_AUTOCOMPACT_PCT_OVERRIDE environment variable is correctly set to 30 at the project level and that it is being properly read by the application.
  • Check for any other environment variables or settings that may be overriding the CLAUDE_AUTOCOMPACT_PCT_OVERRIDE value.
  • Review the changes made in the update from v116 to v119 to see if there are any changes related to auto compaction or environment variable handling.
  • Test the application with the CLAUDE_AUTOCOMPACT_PCT_OVERRIDE variable set to a different value to see if the issue persists.

Notes

The issue may be specific to the v119 version, and reverting to v116 may be a temporary workaround. However, without further information, it is unclear what changes were made in the update that caused the issue.

Recommendation

Apply workaround: Revert to v116 until the issue is resolved in a future version, as the issue started after updating to v119.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Auto-compact triggers at 16% despite CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=30 set [3 comments, 3 participants]