Skip to content

v1.6.6 — dashboard panel + tokens column + model color fixes

Choose a tag to compare

@jayson-jia-dev jayson-jia-dev released this 09 Jun 09:18

Patch release. Existing users: reinstall (config auto-migrated, duplicate plugin removed):

curl -fsSL https://raw.githubusercontent.com/jayson-jia-dev/cc-token/main/install.sh | bash

Fixes

  • Dashboard: bottom panels were blank. A helper (esc()) was referenced in the Usage Wrapped panel but only defined inside other panels' scope — the resulting ReferenceError silently halted every panel after it (Usage Wrapped / ROI / Machines rendered empty). Hoisted esc() to global scope.
  • Daily Details "Tokens" column now shows actual per-session token counts (was showing the model name); model moved next to the project.
  • Model cost donut: Opus 4.8 was missing from the palette and collided with Opus 4.6 — now distinct.
  • Daily Details reconcile: per-day session attribution + top-30-by-cost + a "+N more sessions ($X)" remainder row so rows always sum to the day total.
  • New tests/test_dashboard_js.py executes all inline dashboard scripts under a DOM stub to catch this class of runtime regression.

Includes everything from v1.6.0–v1.6.5 (rename to cc-token, usage-depth scoring fix, audit hardening).