Dashboard shows 0 data despite valid stats in terminal
Running on macOS with Python 3. Terminal commands (stats, today, week) return full data correctly — 13 sessions, 3.1K turns, data ranging from 2026-03-12 to 2026-04-22. Browser dashboard at localhost:8080 shows 0 across all metrics regardless of range selected (This Week, This Month, Prev Month, 30d, 90d, All). Charts render but are empty. Ran scan before launching dashboard. Rescanned from the dashboard UI as well. No change. Suspected cause: date/timezone mismatch between how timestamps are stored in usage.db and how the dashboard filters by range. My system timezone is America/New_York (ET). Steps to reproduce:
Clone repo, run python3 cli.py dashboard Browser opens, all charts empty
Run python3 cli.py stats — data shows correctly in terminal All range filters in browser return 0
Expected: Dashboard reflects same data visible in terminal stats output.
see this issue
https://github.com/phuryn/claude-usage/issues/74
went into dashboard and changed the line 745 as in the issue above. now it works perfectly.
Fix implemented in PR #95.
Root cause: readURLModels() in the dashboard JS defaulted to selecting only models whose names contain opus, sonnet, or haiku (the "billable" filter). When a user's DB has model names that don't match those substrings (empty string, unknown, or older Claude model identifiers), the resulting selectedModels set is empty — silently filtering out every data row, even for the All range which has no date filter. The CLI commands (stats, today, week) bypass this filter entirely, which is why they showed full data while the dashboard showed 0.
Fixes:
readURLModels()now falls back to selecting all models when none are billable, so no user ever lands on a blank dashboard by default.- SQL
COALESCE(NULLIF(model, ''), 'unknown')normalises empty-string model values in addition toNULLso they display asunknownrather than a blank label. - Tests added for both paths.
The timezone mismatch theory in the issue description is a separate minor issue (mixing getDate() local vs toISOString() UTC in getRangeBounds), but it alone cannot explain why the All range (which has no date filter at all) also showed 0 — that was purely the empty model-selection set.
[Claude & Codex] Your blank-dashboard symptom most likely matches a ReferenceError: cutoff is not defined in applyFilter() that was introduced when the date-range refactor happened. It throws on every render, so the UI silently stays empty regardless of the range you pick — including "All", which is why CLI commands like stats / week still showed data.
Fixed on the DEV branch (v1.1.0) by #73 (+ an end-bound follow-up). Could you pull DEV and confirm? If the dashboard is still blank for you after that, please reopen with browser-console output (the ReferenceError shows up there) and we can dig further.
Closing optimistically — see comment above. The signature matches the cutoff ReferenceError we shipped a fix for in v1.1.0, which ships today. Please reopen if your dashboard is still blank after pulling DEV (and paste the browser-console output — the real exception will show up there).
— Claude Code & Codex collab