claude-code - 💡(How to fix) Fix [BUG] Single README.md edit burns entire 5-hour Max 5x window in 9m 39s (Opus 4.7 1M, resumed session, v2.1.126, JetBrains, Windows) [4 comments, 5 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#56075Fetched 2026-05-05 05:58:50
View on GitHub
Comments
4
Participants
5
Timeline
17
Reactions
2
Timeline (top)
commented ×4labeled ×4mentioned ×4subscribed ×4

Error Message

the session window, Claude Code should warn the user before

Error Messages/Logs

Code Example

Worked for 9m 39s
You've hit your limit · resets 12:50am
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

A single small prompt — a minor edit to a README.md file (the only file touched in the session) — on a resumed 1M-context Opus 4.7 session caused Claude Code to work for 9m 39s and consumed the entire 5-hour Max 5x window, locking me out for ~4 hours. No sub-agents, no large repo reads, no parallel sessions.

A previous session of comparable scope (similar README-level edits, same plan, same model) used only a small portion of the 5-hour window — so this is a clear regression, not expected behavior.

This is not the documented peak-hours faster drain — that would still allow multiple prompts. This is one prompt → full lockout, with no pre-turn warning.

Related: #38335, #38345, #45756, #55941. This report covers the 1M context + resumed session + JetBrains plugin on Windows combination specifically.

What Should Happen?

A minor edit to a single README.md file should consume a small fraction of the 5-hour Max 5x window — at most a few percent, even on a resumed 1M-context session with a full prompt-cache miss.

For reference: a previous editing session of comparable scope (similar README-level edits, same plan, same model) used only a small portion of the 5-hour window and let me work through the full session normally. The current behavior is a clear regression from that baseline.

At absolute minimum, if a turn is going to cost more than ~20% of the session window, Claude Code should warn the user before sending the request and offer to start a fresh session or switch off the 1M context window. Silently burning the entire window on one small edit, with no pre-turn cost estimate and no opt-out, is the core bug.

Error Messages/Logs

Worked for 9m 39s
You've hit your limit · resets 12:50am

Steps to Reproduce

  1. Have a Max 5x plan with Claude Code v2.1.126 installed in a JetBrains IDE on Windows (native, not WSL).
  2. Resume an older session via --resume (or the JetBrains plugin's resume UI) on claude-opus-4-7 with the 1M context window enabled. The session should be old enough that the 1-hour prompt cache has expired (i.e. >1 hour since last activity).
  3. Send a single small prompt asking for a minor edit to one README.md file — e.g. "fix typos in README.md" or "rephrase the intro paragraph in README.md".
  4. Claude Code works on the turn — in my case the status line showed "Worked for 9m 39s" before the turn ended.
  5. Run /status and observe usage at or near 100%.
  6. Send any follow-up prompt and observe the 5-hour rate-limit lockout message.

Note: I cannot guarantee 100% reproducibility on a clean account without a similarly-aged resumed 1M session, since the cost appears tied to the cache-miss + full 1M context replay. But the pattern (resumed 1M Opus 4.7 + small edit → session-window exhaustion) is consistent with reports in #45756 and #55941.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.126

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by disabling the 1M context window or starting a fresh session when the estimated cost of a turn exceeds a certain threshold.

Guidance

  • The problem seems to be related to the combination of a resumed 1M-context session, a full prompt-cache miss, and the Opus 4.7 model, which causes the entire 5-hour Max 5x window to be consumed by a single small prompt.
  • To verify the issue, try reproducing the steps provided, paying close attention to the usage percentage after sending a follow-up prompt.
  • Consider starting a fresh session or disabling the 1M context window when working with small edits to avoid exhausting the session window.
  • The user should be warned before sending a request that is likely to exceed a certain percentage of the session window, allowing them to opt-out or start a fresh session.

Example

No code snippet is provided as the issue seems to be related to the interaction between the Claude Code plugin, the Opus 4.7 model, and the 1M context window.

Notes

The reproducibility of the issue may vary depending on the age of the resumed session and the cache status. The pattern of resumed 1M Opus 4.7 sessions with small edits leading to session-window exhaustion is consistent with other reports.

Recommendation

Apply a workaround by disabling the 1M context window or starting a fresh session when working with small edits, as this can help mitigate the issue until a more permanent fix is available.

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] Single README.md edit burns entire 5-hour Max 5x window in 9m 39s (Opus 4.7 1M, resumed session, v2.1.126, JetBrains, Windows) [4 comments, 5 participants]