Skip to content

v2.7.1 — the badge finally leaves idle

Choose a tag to compare

@Ship-Wright Ship-Wright released this 25 Aug 06:33
· 123 commits to main since this release
a8e756c

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.sh now 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 /doctor run.
  • The primary Python installer in SKILL.md provisions the deps too.
  • marketplace.json synced to 2.7.1 (it had been stranded at 2.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