Skip to content

fix(history): rescan on open and every 60s while the view is open - #66

Merged
stefanprodan merged 1 commit into
mainfrom
history-auto-refresh
Sep 29, 2026
Merged

stefanprodan merged 1 commit into
mainfrom
history-auto-refresh

Conversation

@stefanprodan

Copy link
Copy Markdown
Owner

The history view scanned transcripts only on first open and reused that snapshot forever, while the Stats tab computes this week/month/year from the live clock. A cctop left running across a Monday showed "no activity" under Top projects this week.

  • Rescan on every h open (cheap: per-file mtime+size cache; prior frame stays up).
  • While the view is open, rescan silently every 60s and immediately on a local date change. Never runs from the main refresh loop or in other views.
  • Footer shows auto 60s · HH:MM:SS (last scan time); r still rescans with a flash.
  • AGENTS.md updated to describe the new cadence.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan
stefanprodan merged commit 876c9b4 into main Sep 29, 2026
2 checks passed
@stefanprodan
stefanprodan deleted the history-auto-refresh branch September 29, 2026 08:19
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