Title: Claude Code CLI loops on initial query and instantly...
Bug Description
Title: Claude Code CLI loops on initial query and instantly consumes 100% of Pro subscription session limit
Description:
For the past two days, I have encountered a critical bug in Claude Code CLI where a single query instantly depletes my entire Pro subscription usage limit within a minute, without generating a proper response.
Steps to reproduce:
- Wait for the 5-hour session limit to fully reset (Usage page shows 0%).
- Start Claude Code CLI and submit a standard programming-related query.
- The CLI enters a "zigzagging" / thinking loop that lasts for about 60 seconds.
- Check the account usage page while it's looping — the quota instantly spikes from 0% to 96-100%.
- The agent breaks the loop, outputs a single generic sentence, and immediately hits the hard limit, locking the account for another 5 hours.
Expected behavior:
The agent should manage context efficiently without entering an infinite processing loop on the very first query of a fresh session.
Actual behavior:
It appears to be a severe bug in context management or the auto-compaction mechanism during the initial session handshake, leading to catastrophic token/credit drainage on the server side in under a minute.
Environment Info
- Platform: linux
- Terminal: tmux
- Version: 2.1.201
- Feedback ID: 009bd352-149f-415d-9c0c-1aacf7c6996c
Errors
[]