claude-code - 💡(How to fix) Fix Auto-compaction did not trigger at 100% context usage

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…

A session reached 100% context usage without auto-compaction triggering. The session became unusable with no summary carried forward.

Root Cause

A session reached 100% context usage without auto-compaction triggering. The session became unusable with no summary carried forward.

Fix Action

Workaround

Manually run /compact before context fills up.

RAW_BUFFERClick to expand / collapse

Description

A session reached 100% context usage without auto-compaction triggering. The session became unusable with no summary carried forward.

Expected behavior

Auto-compaction should trigger before the context window is fully exhausted (e.g., at ~85-90%), summarizing the conversation and freeing space to continue.

Actual behavior

The context hit 100% with no compaction fired. The session was effectively dead - no further input was possible.

Environment

  • Platform: Windows 11 Pro (10.0.26200)
  • Shell: PowerShell 5.1

Steps to reproduce

  1. Run a long session with heavy tool use / large file reads
  2. Observe context percentage climbing to 100%
  3. No compaction fires - session is unrecoverable

Workaround

Manually run /compact before context fills up.

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…

FAQ

Expected behavior

Auto-compaction should trigger before the context window is fully exhausted (e.g., at ~85-90%), summarizing the conversation and freeing space to continue.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING