anthropics / anthropics/claude-code

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

未关闭
#92,496 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:core area:cost bug platform:linux
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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?

Image

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

```shell

```

### 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_

贡献指南

这个仓库没有索引到贡献指南

调研方向

No source file, test, log, or reproduction command is identified in the report. Start by reproducing the behavior on Claude Code 2.1.263 and compare it with 2.1.261, using Anthropic API usage and session activity to confirm the heartbeat and token drain. Done means the unintended keep-alive no longer occurs by default and the regression is covered by a test.

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, powershell, python
领域
api, cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。