anthropics / anthropics/claude-code

Cloud/remote session token usage not included in "Total tokens" stat on the Overview dashboard

Đang mở
#87,934 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:claude-code-web bug stale
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

**Description**

The Overview dashboard (the "What's up next" home screen, showing Sessions / Messages / Total tokens / Active days / streaks / etc.) does not appear to count token usage from cloud/remote sessions toward the "Total tokens" stat. Only local sessions seem to be reflected.

**Repro / evidence**

- I've run roughly 60 tasks via cloud/remote sessions, each using on the order of 200k tokens — that's ~12M tokens of real usage that isn't showing up anywhere in the "Total tokens" figure on the Overview tab.
- The stat only seems to move for locally-run sessions; cloud-run sessions don't contribute at all, even though the sessions themselves appear in the sidebar/session list.

**Expected behavior**

"Total tokens" (and any tokens-derived stats — streaks, peak hour, favorite model, etc. if they're token-weighted) should aggregate usage across both local and cloud/remote sessions.

**Actual behavior**

Token usage from cloud/remote sessions is missing from the total, causing the displayed total to significantly undercount actual usage.

**Environment**

- Surface: Claude Code web/desktop "Overview" usage dashboard
- Session types involved: local sessions + cloud/remote sessions

**Related**

Possibly related to #73144 (usage stats excluding SSH remote-workspace sessions) — may share a root cause of non-local session types not being counted, though that issue is specifically about SSH remote workspaces rather than cloud/remote sessions.

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 files or tests are named. Start at the Overview dashboard's "Total tokens" calculation and trace how local versus cloud/remote sessions supply usage data; compare the behavior with the related SSH-session issue #73144. Done means cloud/remote usage is included in Total tokens and any token-derived Overview statistics that are intended to aggregate session usage.

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

Đánh giá

Công nghệ
python
Lĩnh vực
analytics, cloud
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
Khá rõ ràng
Mức phù hợp với người mới
48/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.