Skip to content

fix: accurate daily stats from message timestamps - #92

Merged
vakovalskii merged 1 commit into
mainfrom
fix/accurate-daily-stats
Apr 8, 2026
Merged

fix: accurate daily stats from message timestamps#92
vakovalskii merged 1 commit into
mainfrom
fix/accurate-daily-stats

Conversation

@vakovalskii

Copy link
Copy Markdown
Owner

Today: 155 msgs, 1.1h (was 518 msgs, 16h from proportional split).

- Read actual message timestamps from Claude session files
- Group messages by local date — no more proportional guessing
- Hours = actual time span of messages per day (capped at 16h)
- Cost distributed proportional to message count per day
- Fallback to single-day for non-Claude / sessions without detail
- Cache leaderboard stats for 60s (computation takes ~3s)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vakovalskii
vakovalskii merged commit f06043c into main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant