github janekbaraniewski/openusage v0.6.10

latest releases: v0.26.3, v0.26.2, v0.26.1...
8 months ago

Changelog

Performance

  • Fix O(n^2) hook spool cleanup with linear algorithm (#50)
  • Remove LOWER/TRIM from SQL queries to enable index-only scans (#50)
  • Add LIMIT caps to provider and aggregation queries (#50)
  • Deduplicate metric cleanup loops into a single generic helper (#50)

Bug Fixes

  • WAL checkpoint loop — periodic TRUNCATE checkpoint prevents unbounded WAL growth that caused dashboard hangs on large databases (#50)
  • Corruption recovery — remove stale -shm file on startup, quick integrity check with auto-backup and fresh DB on corruption (#50)
  • Single SQLite connection — MaxOpenConns(1) eliminates checkpoint starvation (#50)
  • Detect timeout — gh copilot --version now has 5s context timeout instead of blocking forever (#50)
  • Prevent unbounded growth of in-memory caches with two-pass eviction (stale first, then LRU oldest) (#50)
  • Fix false-positive corruption detection on transient SQLite query errors (#50)

Maintenance

  • Fix scrambled doc comments between WAL and integrity check functions (#50)
  • Deduplicate openAndConfigureDB() helper for happy path and recovery path (#50)
  • Remove dead HookUsage wrapper type, return core.TokenUsage directly (#50)
  • Route WAL checkpoint warnings through correct log levels (#50)

Full Changelog: v0.6.9...v0.6.10

Don't miss a new openusage release

NewReleases is sending notifications on new releases.