Skip to content

feat(statusline): ship the compact ccstatusline layout - #417

Merged
ycpss91255 merged 2 commits into
mainfrom
feat/statusline-compact-layout
Nov 10, 2026
Merged

ycpss91255 merged 2 commits into
mainfrom
feat/statusline-compact-layout

Conversation

@ycpss91255

@ycpss91255 ycpss91255 commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Update the shipped ccstatusline layout template to the compact layout now used on every maintained machine. Closes #416.

Changes

  • module/config/claude/ccstatusline.settings.json:
    • Row 1: model (effort) | Ctx <pct> | Usage: 7d <pct> <reset>; row 2: cwd | git-branch | git-changes.
    • Removed the Total: <tokens> (<cost>) group, the 5h usage widgets (session-usage, reset-timer) and the compaction counter.
    • Shortened the Context: label to Ctx .
    • Kept the file's one-widget-per-line style; still version: 3, no installation block.
  • test/unit/module/claude-code-config_spec.bats: updated the three layout specs that pinned the old shape (two rows with no trailing empty row; cwd then git on row 2; row 1 carries model, context and weekly usage while the removed widgets stay out).
  • doc/changelog/CHANGELOG.md: [Unreleased] / Changed entry.

The template parses to exactly the same JSON as the layout currently running on the maintainer's machines.

Decision

  • A Max 20x plan has no 5h window. The 5h widgets then fall back to the OAuth usage API and render [Timeout] / [Rate limited], so they are removed rather than hidden conditionally.
  • ccstatusline 2.2.19 has no per-plan show/hide option (no widget reads the subscription tier), so the layout is fixed at template level. Automatic per-tier switching would need a launcher-side plan check and is deferred.
  • run-ccstatusline.sh and the deploy path are untouched.

Tests

  • The first push failed test-unit (claude-code-config) (specs 47-49 pinned the old layout); fixed in the second commit.
  • The three updated jq assertions pass against the new template locally.
  • just -f justfile.ci test-unit could not run locally (test-tools image build failed on apk TLS errors); CI (ci-passed) is the gate.

Row 1 is now `model (effort) | Ctx <pct> | Usage: 7d <pct> <reset>` and
row 2 is `cwd | git-branch | git-changes`.

Drop the Total (tokens/cost) group, the 5h usage widgets and the
compaction counter, and shorten the Context label to Ctx. On a Max 20x
plan there is no 5h window, so those widgets only rendered [Timeout] /
[Rate limited] after falling back to the OAuth usage API.

ccstatusline 2.2.19 has no per-plan show/hide option, so the layout is
fixed at template level. Add a CHANGELOG [Unreleased] entry.
…e layout (#416)

The three claude-code-config specs that pinned the old layout (three rows
with a trailing empty row, cwd/git on row 1, reset timers on row 2) failed
against the new template. Assert the new shape instead: two rows, cwd then
git on row 2, and row 1 carrying model, context and weekly usage while the
5h, Total and compaction-counter widgets stay out.

Correct the CHANGELOG entry, which claimed the specs only check version 3.
@ycpss91255
ycpss91255 enabled auto-merge (squash) November 10, 2026 02:10
@ycpss91255
ycpss91255 merged commit 70bf95a into main Nov 10, 2026
12 checks passed
@ycpss91255
ycpss91255 deleted the feat/statusline-compact-layout branch November 10, 2026 02:15
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.

feat(statusline): ship the compact ccstatusline layout (drop Total and 5h usage)

1 participant