Skip to content

v1.7.0

Choose a tag to compare

@uttamdeb uttamdeb released this 02 Oct 14:49
· 171 commits to main since this release

Gemini 4 Argon usage is now recognized and priced across supported tools. Live usage refreshes also retain the last valid history when a full reparse fails, and detect Cursor/Hermes updates that exist only in SQLite's write-ahead log.

Gemini 4 Argon

  • Normalize Argon display names and raw log spellings through the shared Gemini normalizer, including provider prefixes and preview suffixes.
  • Use Google's announced introductory API-equivalent rates: $2 input, $10 output and $0.10 cached input per million tokens. The later $4/$20 rates have no effective date and are not applied in advance.
  • Access remains limited to trusted testers; Google has not listed a public API model ID. Support was verified with synthetic log fixtures, since no live Argon usage was available locally. Audio, image and Live variants are not assigned text-model prices. Gemini CLI remains unsupported because its local bookkeeping lacks usable usage data.

Fixes

  • Correct the Copilot pricing note: newer logs provide recorded request token counts; older or unfinished requests use estimates from visible text.
  • Report full-parser failures during background refreshes, retain the prior aggregate/signature, and retry on the next refresh. Close database handles on failures.
  • Detect WAL-only changes in Cursor and Hermes stores, instead of waiting for a database checkpoint.
  • Serialize payload construction and cache actions with refreshes to prevent concurrent mutation and lost cache updates. Snapshot Storage metadata before scanning the filesystem.
  • Deduplicate conversations within each device, recognize Windows path separators on other operating systems, and include cache-write tokens when choosing the fullest copy.
  • Skip files that disappear between discovery and parsing rather than saving a null ledger entry.
  • Document normal upgrades that preserve archived history, and add a stdlib regression suite using temporary stores.

Upgrade

The cache version is now 52. A normal restart reparses live logs while retaining archived ledger entries whose source logs no longer exist. Back up .usage_cache.json before upgrading; do not use --rebuild for a routine upgrade because it discards archived history.

Update connected devices to v1.7.0 as well. Devices on v1.6.x use cache version 51 and cannot sync with this release until updated. Saved peer mirrors remain on disk.

Validation

  • python3 -m unittest discover -s tests -v: all 9 regression tests passed, covering model rates, token fallbacks, WAL-only writes, parser failures, archive migration, deduplication and refresh concurrency.
  • All 59 existing model-price rows and their normalizations were unchanged; a frozen existing ledger produced identical usage, costs, sessions and breakdowns.
  • Read-only snapshots of representative live SQLite stores matched the previous parser's successful output.
  • All 8 views rendered without errors across light/dark themes and today/30-day ranges (32 browser checks). Argon filtering/cost display and write-endpoint CSRF rejection also passed.
  • Python 3.8 syntax compatibility and git diff --check passed.