claude-code - 💡(How to fix) Fix [Bug] WhatsApp bridge context accumulation causes exponential token consumption without warning, Clauxe Max Usage metrics are hard to retrieve [2 comments, 3 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#52892Fetched 2026-04-25 06:18:06
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2renamed ×1

Error Message

[{"error":"Error: File does not exist. Note: your current working directory is <path> at call (/$bunfs/root/src/entrypoints/cli.js:4741:7630)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T23:50:09.991Z"},{"error":"Error: Agent type 'QATester' not found. Available agents: claude-code-guide, Explore, general-purpose, Plan, statusline-setup\n at call (/$bunfs/root/src/entrypoints/cli.js:3101:48324)\n at m35 (/$bunfs/root/src/entrypoints/cli.js:4191:8445)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T12:40:23.357Z"}]

Code Example

[{"error":"Error: File does not exist. Note: your current working directory is <path>  at call (/$bunfs/root/src/entrypoints/cli.js:4741:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T23:50:09.991Z"},{"error":"Error: Agent type 'QATester' not found. Available agents: claude-code-guide, Explore, general-purpose, Plan, statusline-setup\n    at call (/$bunfs/root/src/entrypoints/cli.js:3101:48324)\n    at m35 (/$bunfs/root/src/entrypoints/cli.js:4191:8445)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T12:40:23.357Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description WhatsApp bridge by default keept the context from previous messages and eats up tokens exponentially! That was causing my token exhaustion. I am surprised that Claude didn't warn me while I was setting up the WhatsApp bridges. This has caused trust issues as I lost the ability to use Claude for more than half of the time.

Second, a generic AI thing, unless and until specified exceptions are not handled, AI nicely gobbles up the exceptions without letting us know that there was an issue. I had a tab not loading data in stock trader app and it drove me crazy for 30 mins to figure out what was happening with it! Today I wasted a lot of time going back and forth on this, frustrating.

Third, I was giving requirements to send me token usage for each WhatsApp prompt, it seriously took more than 10 days for PAI and Claude to implement it right. First it starts off with API key access, then me indicating that I m a claude max subscriber and I don't use API, then it says claude does not give usage metrics through CLI and it builds a script that needs static feeding of the data. Until I realize that the numbers continue to be static and send a frustrated prompt, it gives half baked functionality although I was using Claude Opus. Yesterday after my frustrated prompt, Claude looks through and says there's a json file where Claude is storing token usage metrics and then changes implementation. 10 days and I kept going back and forth on the usage metrics. I trusted that you will automtae the right way. Next time onwards I will check what is implemented. This raised serious trust issues as I kept running out of tokens impacting my ability to troubleshoot.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.116
  • Feedback ID: 3bcb2156-8a29-4d20-bfa1-d4d9722d324f

Errors

[{"error":"Error: File does not exist. Note: your current working directory is <path>  at call (/$bunfs/root/src/entrypoints/cli.js:4741:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T23:50:09.991Z"},{"error":"Error: Agent type 'QATester' not found. Available agents: claude-code-guide, Explore, general-purpose, Plan, statusline-setup\n    at call (/$bunfs/root/src/entrypoints/cli.js:3101:48324)\n    at m35 (/$bunfs/root/src/entrypoints/cli.js:4191:8445)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T12:40:23.357Z"}]

extent analysis

TL;DR

The WhatsApp bridge's exponential token consumption due to retained context from previous messages is likely the primary cause of token exhaustion.

Guidance

  • Review the WhatsApp bridge configuration to understand how context is being retained and explore options to reset or limit context retention.
  • Investigate the implementation of token usage metrics, potentially leveraging the discovered JSON file storing token usage metrics, to better monitor and manage token consumption.
  • Consider reaching out to support or the development team for guidance on optimizing WhatsApp bridge configuration and token management.
  • Examine the provided error logs to identify any patterns or clues that might indicate how the errors are related to the token exhaustion issue.

Example

No specific code snippet can be provided without more context on the WhatsApp bridge configuration or the custom script mentioned.

Notes

The issue seems to involve a combination of configuration, implementation, and potential bugs within the system. Without direct access to the system or more detailed documentation, providing a precise fix is challenging.

Recommendation

Apply workaround: Implement a temporary solution to monitor and limit token usage manually until a more permanent fix can be developed, potentially by utilizing the JSON file for token metrics or adjusting the WhatsApp bridge settings.

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] WhatsApp bridge context accumulation causes exponential token consumption without warning, Clauxe Max Usage metrics are hard to retrieve [2 comments, 3 participants]