Repository navigation
Usage: pick This month or an earlier calendar month #32822
Ramanan-Bala
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Usage only offers rolling windows: Past 24h, 7 days, 30 days and 90 days. There is no way to see the current calendar month ("how much have I spent this month?") or a past month ("what did October cost?"). "30 days" is close but never lines up with a month.
Proposal
Add a month option to the Usage period control:
Mod+Shift+5selects This month, next to the existingMod+Shift+1–4. The existingusage.period.monthcommand stays bound to 30 days.Scope and constraints
UsageSummaryInputalready carriessinceDay/untilDayand the viewer'stimeZone, and the server already groups by calendar day in that zone, so a month is just a different range computed on the client.CACHE_RETENTION_DAYS), and providers delete old transcripts (Claude Code after 30 days by default). The menu lists only months whose first day falls inside that window, so a listed month is never silently partial. That 92-day value becomes one shared constant so the server and clients can't disagree. Going back further, by keeping data longer, is deliberately out of scope.Implementation
A working implementation is on a branch: https://github.com/Ramanan-Bala/t3code/tree/feat/usage-month-picker. The matching PR is #32824. I'm happy to change the scope or UI based on feedback, or to close the PR if this isn't a direction you want.
Screenshot
This month selected with the month menu open:
All reactions