Repository navigation
feat: add monthly cost option to status-bar metric - #41
Conversation
Extends the statusBarMetric enum with a 'monthly-cost' value so users can toggle the first status-bar item to show the current calendar month's total cost instead of today's cost. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This feature is particularly useful for developers using an enterprise Claude instance that is billed with monthly costs — rather than tracking day-by-day spend, they can see their running monthly total at a glance directly in the status bar. |
|
Hi @PhisicsLollo0, I‘ve review the code and it looks fine. Just one thing before I merge: I don't have an enterprise subscription to see the monthly figure render, so could you run the test plan yourself? Press F5 into the Extension Development Host, set Status-bar metric → Monthly cost in the ⚙ Settings tab, and drop a quick screenshot of the status bar (and the tooltip) here? Once that looks right I'll merge it. Thanks. |
|
Hi @Carl723000, I've run through the full test plan:
Screenshots below 👇
|
|
Thanks @PhisicsLollo0 — merging this for 2.1.1. |
… clean format Resolves the conflicts from ClaudeCodeUsage#41 (monthly-cost metric) and brings in ClaudeCodeUsage#46 (third-party pricing). Replaces this PR's dense quota text (`5h:50%:2.3h | wk:1%`) with the shared, unit-tested formatter in quotaFormat.ts so the status bar default stays the airy `5h 6% · wk 1%`; `quotaFiveHourOnly` / `showResetInStatusBar` still work, reset detail stays in the tooltip. Keeps oxsean's robust liveWindows()/roll() stale-window handling and the modal-confirm + move-to-trash session delete unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
- Bump version to 2.1.1. - CHANGELOG: date [2.1.0] as 2026-06-26 (released) and gather the post-2.1.0 work under a new [2.1.1] section — monthly cost (#41), session actions + clean quota + resilience + wider dashboard (#43), pt-BR (#48), account-switch fix (#45), third-party pricing accuracy (#46). - gitignore the whole docs/ tree (local-only planning context pack; synced to a personal repo, never shipped here).

Summary
statusBarMetricsetting with a newmonthly-costoption$(calendar)icon instead of today's costTest plan
🤖 Generated with Claude Code