Repository navigation
v2.7.1 — the badge finally leaves idle
Patch release. Fixes a fresh-install bug where the status-line badge was permanently stuck at ○ headroom idle (not compressing yet), showing zero savings forever even while hcat/headroom_compress were actively working — with no error and a clean /doctor.
The bug (#2)
statusline.sh resolves its attribution.jq + headroom-state.sh deps from a lib/ dir next to the installed copy. Without them compute() silently returns 0 on every render. But neither doctor.sh --fix nor the primary SKILL.md installer ever copied scripts/lib/ alongside the copy — only the legacy fallback installer did — so the badge read zero on every plugin/marketplace install. Check 7b only cmp'd the script itself, so /doctor reported all-ok while the badge was structurally broken.
Fixed
doctor.shnow provisions~/.claude/lib/{attribution.jq,headroom-state.sh}in both the initial-wire and refresh paths, and a new check 7c verifies + repairs them under--fix— so existing broken installs self-heal on the next/doctorrun.- The primary Python installer in
SKILL.mdprovisions the deps too. marketplace.jsonsynced to2.7.1(it had been stranded at2.6.0).
Tests
Fresh-install --fix now asserts lib provisioning; a new F7e fixture reproduces the exact "current copy, missing lib deps" shape the old doctor passed silently. 427 pass / 0 fail, shellcheck clean.
Upgrade
Update the plugin, then ask Claude to run /headroom-usage-indicator:doctor --fix once — it installs the missing deps and the badge starts reporting real savings.
Credit
Root-caused with a full write-up, suggested fix, and confirmed workaround by @wandering-tales. Thank you! 🙏
Full diff: v2.7.0...v2.7.1