[BUG] Random huge token generation

Resolved 💬 3 comments Opened Jul 22, 2025 by junaid1460 Closed Aug 19, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: Max plan
  • Claude CLI version: <!-- output of claude --version -->
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

CLI just starts downloading tokens, most of the times when I saw and interrupted it it was above 30k tokens and stuck after tool call. This is serious issue which might just block a GPU for no apparent reason. I am not sure what's the actual issue, could be context poisoning for it to start assuming something, I also don't have ability to see the downloaded tokens.

Steps to Reproduce

Happens sometimes right after tool call

Expected Behavior

For it to not consume tokens

Actual Behavior

Just downloading tokens without any info in UI, neither any actions performed

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗