github alexgreensh/token-optimizer v2.3.1
v2.3.1: Fix compaction detection

latest releases: openclaw-v2.4.1, v5.6.4, v5.6.2...
one month ago

What's Changed

Bug fix: Dashboard was showing 0 compactions even when compacts ran. The detection code looked for type="summary" or "compaction" in message text, but Claude Code writes compact markers as type="system" with subtype="compact_boundary" and a compactMetadata dict. Neither pattern matched.

Fix: Detection now keys on subtype == "compact_boundary" (primary) and compactMetadata key presence (fallback). Verified across 15 sessions with 23 real compact_boundary records.

Changes

  • Fix compaction boundary detection in _parse_jsonl_for_quality() to match Claude Code's actual JSONL format
  • Version bump to 2.3.1 in plugin.json and marketplace.json
  • Update README version badge

Full Changelog: v2.3.0...v2.3.1

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.