[BUG] Random usage of tokens for no apparent reason

Resolved 💬 1 comment Opened Apr 21, 2026 by tejaswi-designo Closed May 27, 2026

Preflight Checklist

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

What's Wrong?

32k tokens were used by claude code for no apparent reason. Inspite of having the context, these tokens were unfairly used. Attaching the screenshots.

<img width="1728" height="493" alt="Image" src="https://github.com/user-attachments/assets/4c484868-4cd0-4336-adab-4a4f835b20f1" />

What Should Happen?

claude should have checked the context and not used tokens for re-writing (Or i do not even know what it was using it for).

Error Messages/Logs

Steps to Reproduce

I am not sure how to reproduce this issue.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.116

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗