Skip to content

v0.5.0 - Two-tier Processing & Enhanced TMUX Panel

Choose a tag to compare

@github-actions github-actions released this 05 Dec 05:39

What's New in v0.5.0

✨ Features

Two-Tier Log File Processing

Token metrics now use an optimized two-tier processing system:

  • Tier 1: Real-time processing of entries within the lookback window (fresh data)
  • Tier 2: Cached processing of historical entries outside the lookback window

This significantly reduces CPU usage when processing large JSONL files.

Persistent Cache (.ccdash folder)

Historical token data is now cached for faster startup:

  • Cache stored in .ccdash/token_cache.json in the working directory
  • Automatically invalidates when source files are modified
  • Survives across sessions

Enhanced TMUX Panel Title

The TMUX panel now shows a comprehensive overview at a glance:

  • Title format: 📺 TMUX Sessions (N) where N is total count
  • Status summary right-justified: 🟢2 🔴1 🟡3 showing count per status
  • Quick visual overview without scanning individual sessions

📝 Changes

  • Removed redundant "Total: X" line from TMUX panel (now in title)
  • Token collector now initializes cache on creation
  • Improved file processing with modification time tracking

🔧 Technical Details

  • New internal/metrics/cache.go for persistent token caching
  • TokenCollector now includes cache and file line tracking
  • Cache uses JSON serialization with version control for compatibility

Full Changelog: v0.3.0...v0.5.0