claude-code - 💡(How to fix) Fix /usage Session view shows stale or cross-session data

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The /usage command's Session view appears to display data that's either stale (not refreshed in-session) or carries over from a prior session, making it unreliable as a real-time cost monitor during long agent runs.

Root Cause

The /usage command's Session view appears to display data that's either stale (not refreshed in-session) or carries over from a prior session, making it unreliable as a real-time cost monitor during long agent runs.

RAW_BUFFERClick to expand / collapse

Summary

The /usage command's Session view appears to display data that's either stale (not refreshed in-session) or carries over from a prior session, making it unreliable as a real-time cost monitor during long agent runs.

Environment

  • Claude Code CLI: 2.1.143
  • macOS 15.x
  • Model: Opus 4.7 (1M context)

Repro

Observed during an extended multi-agent orchestration session on 2026-05-17/18 (~$30+ in real API spend across one session). Session view values didn't track with spend reported by other instrumentation, and didn't update after large bursts of tool calls.

Don't have a tight repro yet — flagging that the field may not be trustworthy as a mid-session cost gauge. Happy to gather more data on the next long run.

Expected

Session-scoped totals should reflect the current session's actual spend, updated within a reasonable interval of the most recent API call.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix /usage Session view shows stale or cross-session data