anthropics / anthropics/claude-code
[BUG] Continuing from a session limit hit causes 45% of immediate quota usage (Fable 5.1)
- 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?
When I hit the limits with Fable 5.1 and I have the auto-resume feature on, even asking a simple question causes immediate burn of ~half of the quota.
I assume this has something to do with cache being automatically invalidated after 5 hours of wait and this causing high usage; still it's very frustrating to wait 5 hours just to lose most of the quota immediately.
### What Should Happen?
If this is indeed a cache issue Claude code should probably warn the user and ask if they want an auto-compacting before execution, this could save a lot of usage.
### Error Messages/Logs
```shell
```
### Steps to Reproduce
1) Have a long session that uses Fable 5.1 on a Max plan ~500-600K tokens
2) Hit the quota
3) Prepare & send a simple message like "stop whatever you were doing and give me a short wrap up message, make sure not to burn any token"
4) Wait and observe most of the quota disappear
### Claude Model
Other
### Is this a regression?
No, this never worked
### Last Working Version
_No response_
### Claude Code Version
2.1.263
### Platform
Other
### Operating System
Ubuntu/Debian Linux
### Terminal/Shell
Other
### 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, or entry point is identified. Start by reproducing the quota jump with auto-resume after a Fable 5.1 session limit, then trace the continuation and cache behavior; done would require a defined, verified outcome for quota usage or user warning.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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