[BUG] 100% session usage in two short messages totalling 143 words

Resolved 💬 2 comments Opened Apr 17, 2026 by dolphinsting Closed Apr 20, 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?

All of my session usage was used by two messages totalling 143 words, including the responses. This was Opus with no tools. It didn't create any artefacts.

These are the messages:

Don't I have to do a similar change to the other script(s)?
20:29
Yes, same change in enter.py. Find page = context.new_page() (around line 55) and add stealth_sync(page) right after it. And add the same import at the top:
python
from playwright_stealth import stealth_sync
Those are the only two files that create Playwright pages.
ImportError: cannot import name 'stealth_sync' from 'playwright_stealth' (C:\Users\tonig\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright_stealth\__init__.py)
I have already successfully installed playwright_stealth
20:32
The API might have changed. Try this import instead:
python
from playwright_stealth import Stealth
Then instead of stealth_sync(page), use:
python
Stealth().apply_stealth(page)
If that also fails, run this in your command prompt to see what's actually exported:
cmd
python -c "import playwright_stealth; print(dir(playwright_stealth))"
And share the output. That'll tell me the exact function name to use.

This isn't in Claude Code but there is literally no way to report a bug with Claude, at least if you believe the horrible help which just keeps repeating the same advice that doesn't work.

What Should Happen?

Claude should let me use a reasonable amount of usage. This was pathetic.

Error Messages/Logs

Steps to Reproduce

Right now almost anything you do uses all your usage so just have a short conversation and you'll see it.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Not claude code, just claude

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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