anthropics / anthropics/claude-code

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

Đang mở
#92,496 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:core area:cost bug platform:linux
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
linux, powershell, python
Lĩnh vực
api, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.