claude-code - 💡(How to fix) Fix [BUG] A user can do absolutely no coding and still use up all tokens in a session. Big fail. [2 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#55046Fetched 2026-05-01 05:47:39
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
4
Author
Timeline (top)
labeled ×4commented ×2

Error Message

Error Messages/Logs

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?

  • 2.1.116 (Claude Code)
  • VSCode extension

Simply clicking on an old chat causes insane token usage.

Today a new 5 hour session started.

The first thing I did was simply click on a series of old chats to renamed them as "RETIRED" so I know I am no longer using them, and to more easily differentiate them from my current chat when looking at the list of chats.

Big mistake.

Before doing a bit of coding, I saw that my usage on the max plan was already over 40%.

That is a massive failure mode and incredibly unfair to users. There should be absolutely 0 token consumption when simply clicking on a chat. There should be absolutely 0 token consumption until the user actually makes a prompt.

What Should Happen?

Correct the behavior of Claude Code, at least in the VSCode extension, such that tokens are not consumed until a prompt is actually given. Allow users to click on a chat without consuming a massive amount of tokens. Prevent users from having a massive loss of expected productivity due to >40% of tokens being used before a prompt is even given.

Error Messages/Logs

Steps to Reproduce

  1. Open VScode
  2. Go to Claude Code extension
  3. Click on a bunch of old chats (10 or so) and rename them - be in the chat long enough for it to load the chat
  4. Notice you used >40% of your max plan session
  5. Refrain from weeping
  6. Write github issue
  7. Pray it is fixed

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.116 (Claude Code)

Platform

Other

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

I was using the VSCode extension -- not integrated Terminal.

extent analysis

TL;DR

The issue can be mitigated by modifying the Claude Code extension to only consume tokens when a prompt is given, rather than when a chat is clicked.

Guidance

  • Review the Claude Code extension's code to identify where token consumption is triggered and adjust it to only occur when a prompt is submitted.
  • Verify that the extension is not sending unnecessary requests or loading unnecessary data when a chat is clicked, which could be contributing to the high token usage.
  • Consider adding a feature to allow users to preview chats without loading the full chat history, which could help reduce token consumption.
  • Test the modified extension with the Opus model to ensure the fix works as expected.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The root cause of the issue is likely related to how the Claude Code extension handles chat loading and token consumption. Without access to the extension's code, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Modify the Claude Code extension to only consume tokens when a prompt is given, as this is the most direct way to address the issue.

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] A user can do absolutely no coding and still use up all tokens in a session. Big fail. [2 comments, 2 participants]