claude-code - 💡(How to fix) Fix [BUG] Sudden 30+ hour lockout from using Claude Code and Claude.ai during critical bulld 3 days before beta launch [1 comments, 2 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#49660Fetched 2026-04-17 08:34:53
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×1unlabeled ×1

Error Message

Warn me when am 5% away from lockdown. Create a way for me to check my usage in the CLI.

Error Messages/Logs

Error editing file

Code Example

Error editing file
  ⎿  You've hit your limit · resets Apr 15 at 10pm (America/Chicago)
     /extra-usage to finish what you’re working on.
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?

30-hour lockout during a critical build window with no warning after 80% of used warning, no degraded-service fallback, and no visibility into remaining budget. even if the rate limit itself is working as designed. The bug is: no warning before cutoff + no way to check remaining budget from the CLI.

What Should Happen?

Warn me when am 5% away from lockdown. Create a way for me to check my usage in the CLI.

Error Messages/Logs

Error editing file
  ⎿  You've hit your limit · resets Apr 15 at 10pm (America/Chicago)
     /extra-usage to finish what you’re working on.

Steps to Reproduce

  1. Use Claude Code
  2. Get blocked from using Claude Code ad Claude.ai
  3. Wait 30+ hours to resume build

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Opus 4.6

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

Implement a warning system to alert users when they are close to reaching their usage limit, and provide a way to check remaining budget from the CLI.

Guidance

  • Investigate the Anthropic API to see if it provides a way to retrieve the current usage and limit, which can be used to implement a warning system.
  • Modify the Claude Code CLI to display a warning message when the user is 5% away from reaching their limit, based on the usage data retrieved from the API.
  • Consider adding a command to the CLI that allows users to check their current usage and remaining budget.
  • Review the error handling in the Claude Code to ensure that it provides a clear and informative error message when the user reaches their limit, including the time until the limit resets.

Example

# Example of a warning message that could be displayed when the user is close to reaching their limit
echo "Warning: You are 5% away from reaching your usage limit. Your limit will reset on Apr 15 at 10pm (America/Chicago)."

Notes

The implementation of the warning system and the CLI command to check usage will depend on the specifics of the Anthropic API and the Claude Code architecture. Additionally, the exact wording and timing of the warning message will need to be determined based on the requirements of the application.

Recommendation

Apply workaround: Implement a warning system and a CLI command to check usage, as this will provide a clear and informative way for users to manage their usage and avoid unexpected lockouts.

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] Sudden 30+ hour lockout from using Claude Code and Claude.ai during critical bulld 3 days before beta launch [1 comments, 2 participants]