[BUG] Client self created "heart beat" keeps session alive forever and drains tokens...

Status Open
Reported on v2.1.261
Maintainer reply None cached
Activity 2 comments · opened Sep 6, 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?

<img width="1708" height="493" alt="Image" src="https://github.com/user-attachments/assets/34cc8336-047c-4228-a0fe-59c0ebfc64b7" />

Why is this even a thing?? This has to be toggled by a hard config setting that is off by default....
Thats resending the entire chat no matter at what tokens/context level used.... specially if its fable? IT drains accounts for no reason.... who thought this was a good idea to have on by default or even create?? Pure slop coding architecture

What Should Happen?

Not drain my account with heartbeats...

Error Messages/Logs

Steps to Reproduce

It did it by itself, no idea...

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.261

Claude Code Version

2.1.263

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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