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
-shmfile 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 --versionnow 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
HookUsagewrapper type, returncore.TokenUsagedirectly (#50) - Route WAL checkpoint warnings through correct log levels (#50)
Full Changelog: v0.6.9...v0.6.10