claude-code - 💡(How to fix) Fix Auto-compact circuit breaker prevents compaction on Haiku (v2.1.65+)

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…

Root Cause

Likely circuit breaker issue (v2.1.116+) stopping after 3 failed auto-compact attempts. gsd-context-monitor.js warns about regression since v2.1.62.

Fix Action

Workaround

Manual /compact command restores compaction ability.

RAW_BUFFERClick to expand / collapse

Issue

Auto-compact not triggering on Haiku, allowing context to reach 90%+ without attempting compaction.

Environment

  • Model: Haiku 4.5
  • Version: v2.1.65
  • OS: macOS

Behavior

  • Earlier session today: auto-compact worked correctly
  • New session opened 40m ago: auto-compact never triggered
  • Context reached 90%+ threshold (autoCompactThreshold set to 0.8)
  • Never attempted any compaction in this session
  • Manual /compact works as expected

Root Cause

Likely circuit breaker issue (v2.1.116+) stopping after 3 failed auto-compact attempts. gsd-context-monitor.js warns about regression since v2.1.62.

Workaround

Manual /compact command restores compaction ability.

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