Repository navigation
feat(statusline): ship the compact ccstatusline layout - #417
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:model (effort) | Ctx <pct> | Usage: 7d <pct> <reset>; row 2:cwd | git-branch | git-changes.Total: <tokens> (<cost>)group, the 5h usage widgets (session-usage,reset-timer) and the compaction counter.Context:label toCtx.version: 3, noinstallationblock.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]/Changedentry.The template parses to exactly the same JSON as the layout currently running on the maintainer's machines.
Decision
[Timeout]/[Rate limited], so they are removed rather than hidden conditionally.run-ccstatusline.shand the deploy path are untouched.Tests
test-unit (claude-code-config)(specs 47-49 pinned the old layout); fixed in the second commit.just -f justfile.ci test-unitcould not run locally (test-tools image build failed onapkTLS errors); CI (ci-passed) is the gate.