Skip to content

fix(installer): apply statusline dedup fix to inlined heredoc in install.sh#226

Merged
steventohme merged 2 commits into
mainfrom
steven/fix-statusline-heredoc-dedup
May 22, 2026
Merged

fix(installer): apply statusline dedup fix to inlined heredoc in install.sh#226
steventohme merged 2 commits into
mainfrom
steven/fix-statusline-heredoc-dedup

Conversation

@steventohme
Copy link
Copy Markdown
Collaborator

Summary

PR #225 fixed install/cc-statusline.sh to use jq -rs slurp mode + unique_by([.message.id, .message.usage]) so per-content-block JSONL entries don't triple-count tokens and savings.

The inlined heredoc copy inside install/install.sh (lines ~1434-1463) — which fresh installs via make full-setup or curl | sh write to disk as the statusline script — wasn't updated, so new installs continued to ship the stale un-deduped jq and kept double/triple-counting tokens and savings.

This applies the same fix to the heredoc.

Test plan

  • Diff install/install.sh heredoc body against install/cc-statusline.sh — should be byte-equivalent for the jq block
  • Run a fresh make full-setup and confirm the generated ~/.claude/statusline.sh contains jq -rs + unique_by (not bare jq -r + select)

🤖 Generated with Claude Code

…all.sh

PR #225 fixed install/cc-statusline.sh to use 'jq -rs' slurp mode +
unique_by([.message.id, .message.usage]) so per-content-block JSONL
entries don't triple-count tokens and savings.

The inlined heredoc copy inside install/install.sh (which fresh installs
via 'make full-setup' or 'curl | sh' write to disk as the statusline
script) wasn't updated, so new installs still got the old un-deduped jq.

Apply the same fix to the heredoc.
Ships the install.sh heredoc dedup fix to npm consumers.
@steventohme steventohme merged commit a38f195 into main May 22, 2026
7 checks passed
@steventohme steventohme deleted the steven/fix-statusline-heredoc-dedup branch May 22, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant