codeburn/src
Resham Joshi 03f12ce81f fix(status): bucket Today/Month by local date, not UTC
renderStatusBar computed `today` via `new Date().toISOString().slice(0,10)`,
which is the UTC date. Session timestamps are also UTC ISO strings, but
the user's expectation of "today" is their wall-clock day. During the
window between local midnight and UTC midnight (e.g. 17:00 PDT on
2026-04-17, which is already 00:00 UTC on 2026-04-18), every session
bucketed under local April 17 missed the UTC-April-18 filter and the
status bar read `Today $0.00  0 calls` even while `--format json`
and the menubar app correctly showed the spend.

Both sides of the comparison now use the local date of each session
timestamp, so the terminal status and the JSON / menubar paths agree.
Verified at UTC midnight (the regression moment that surfaced the bug):

  Before: Today $0.0000  0 calls
  After:  Today $339.87  1839 calls

Caught during the fresh-clone review of the menubar PR.
2026-04-17 17:05:08 -07:00
..
providers fix(pi): use bounded readSessionFile helper 2026-04-17 08:32:19 +02:00
bash-utils.ts feat: add Pi provider for tracking Pi agent sessions 2026-04-16 01:54:42 -07:00
classifier.ts chore: normalize Pi tool names via toolNameMap 2026-04-16 01:57:39 -07:00
cli.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
config.ts cleanup: strip TUI picker, promote currency command, remove verbose comments 2026-04-14 08:47:45 -07:00
context-budget.ts fix(context-budget): use bounded readSessionFile helper 2026-04-17 08:32:19 +02:00
currency.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
cursor-cache.ts fix: final review cleanup 2026-04-15 05:35:11 -07:00
daily-cache.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
dashboard.tsx Merge origin/main into feat/optimize 2026-04-16 16:08:20 -07:00
day-aggregator.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
export.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
format.ts fix(status): bucket Today/Month by local date, not UTC 2026-04-17 17:05:08 -07:00
fs-utils.ts feat(fs-utils): bounded session-file read helper 2026-04-17 08:32:19 +02:00
menubar-installer.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
menubar-json.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
models.ts fix: add claude-opus-4-7 model mapping and pricing 2026-04-16 13:48:58 -06:00
optimize.ts Merge pull request #68 from lfl1337/fix/remove-claudeignore-references 2026-04-17 14:20:50 +02:00
parser.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
sqlite.ts feat: add Cursor IDE provider with SQLite adapter 2026-04-15 03:44:43 -07:00
types.ts feat: multi-provider support (Codex + provider plugin system) 2026-04-14 04:32:09 -07:00