Skip to content

fix: count each session once and apply a new rescan interval straight away - #32

Merged
NotAFlightRisk merged 1 commit into
mainfrom
fix/session-counts
Nov 11, 2026
Merged

NotAFlightRisk merged 1 commit into
mainfrom
fix/session-counts

Conversation

@NotAFlightRisk

Copy link
Copy Markdown
Owner

Category

Bugfix

Overview

The session counts on the Tools and Projects panels counted a session once for every model it used. A Claude Code session running Opus with Haiku subagents turned up twice, so on my data Claude Code read 4,144 sessions all time when there are 3,974, and Projects ranked by sessions was off too (brain 3,389 vs 3,265). The headline figure already got it right.

Changing "Rescan every" in settings also did nothing until a restart, because the timer only read the setting once at start-up. It's restarted on save now.

Two small ones while I was in there: "The scan stopped early" never cleared once a later scan went fine, and PORT=abc aiusage said "null is not a port".

Issue Number

n/a

Additional Info

On a copy of my live database every other number on the page matches main, and a full rollup takes the same time. The new test fails on main. Run side by side with main's build and switched to 30 seconds, this branch rescanned at +30s and +61s while main kept waiting on its two minute timer.

@github-actions github-actions Bot added the bug Something isn't working label Nov 11, 2026
@NotAFlightRisk
NotAFlightRisk merged commit 5516574 into main Nov 11, 2026
10 checks passed
@NotAFlightRisk
NotAFlightRisk deleted the fix/session-counts branch November 11, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant