claude-code - 💡(How to fix) Fix [BUG] PRO plan 5-hour session consumed after a few md file edits [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#53303Fetched 2026-04-26 05:19:12
View on GitHub
Comments
3
Participants
3
Timeline
6
Reactions
0
Author
Timeline (top)
commented ×3labeled ×3

Error Message

Error Messages/Logs

Code Example

feedback id: d1c0bf2e-8e62-495e-b6d9-4891c65be6d3
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?

The PRO plan 5-hour session limits reached after 250 lines added and another 258 removed in 10 md files

What Should Happen?

Before cache bugs/effort madness I could implement several phases of a plan for a library with thousands of lines of code and comments

Error Messages/Logs

feedback id: d1c0bf2e-8e62-495e-b6d9-4891c65be6d3

Steps to Reproduce

Tell Claude to edit a file with 100 lines. It will read it, change the 10 lines affected and consumed a relevant fraction of the 5-hour quota

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Close to Opus 4.6 launch, from early March usage is random

Claude Code Version

2.1.119

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

<img width="1418" height="812" alt="Image" src="https://github.com/user-attachments/assets/59ff6d61-beb4-43d1-877f-b7b9f5b893f3" />

extent analysis

TL;DR

The 5-hour session limit is being reached too quickly, likely due to the way Claude Code calculates the quota consumption for editing files.

Guidance

  • Review the quota consumption calculation to ensure it accurately reflects the changes made to files, considering both added and removed lines.
  • Test the quota consumption with smaller files and fewer changes to determine if the issue is related to the file size or the number of changes.
  • Compare the current behavior with the previous version (around Opus 4.6 launch) to identify any changes in quota calculation or consumption.
  • Verify if the issue is specific to the Sonnet model or if it occurs with other models as well.

Example

No code snippet is provided as the issue seems to be related to the internal workings of Claude Code and the Anthropic API.

Notes

The provided image does not offer any additional information that could be used to diagnose the issue. The problem might be related to how Claude Code interacts with the Anthropic API, and resolving it may require adjustments to the API usage or the quota calculation logic within Claude Code.

Recommendation

Apply a workaround by optimizing the editing process to minimize the number of changes made in a single session, as upgrading to a fixed version is not currently an option since the user is already on the latest version (2.1.119).

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