Skip to content

v1.5.2 — Zero-Waste Polling: Fingerprint Cache, ETag/304 & Background-Tab Auto-Pause

Choose a tag to compare

@qiudai0627 qiudai0627 released this 28 Nov 15:34
· 4 commits to main since this release

What's New in v1.5.2

  • Server-Side Stat-Fingerprint Single-Flight Cache (src/stats_cache.py): Computes a lightweight os.stat() fingerprint across live_state.json, quota snapshots, preferences, and local transcript.jsonl files (with a 30s coarse time bucket). Coalesces concurrent /api/stats requests and eliminates redundant aggregation when nothing changed; immediately invalidates on user writes (POST /api/preferences, /api/record-quota).
  • HTTP ETag + 304 Not Modified (src/server.py): Returns 304 Not Modified with a 0-byte body when If-None-Match matches the current source fingerprint.
  • Background-Tab Auto-Pause & Zero-Redraw (src/web/app.js): Automatically pauses polling when document.hidden is true (0 requests / 0 CPU in background tabs), refreshes immediately on tab focus, and skips JSON parsing & DOM redraw on 304.
  • Expanded Regression Tests: 15/15 core tests + 5/5 plugin/single-instance/ETag-304 tests pass across macOS, Linux, and Windows.