Repository navigation
Conversation
Add a "Rounded usage bars" toggle to Menu Bar → Layout that draws the usage bar and progress bar layout tokens as a continuous capsule, matching the Meter bars icon style, instead of discrete segments. Capsules are sized near the system battery glyph and fill in half-point steps. Off by default; existing layouts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e359501ffd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| let trackFillAlpha: CGFloat = stale ? 0.18 : 0.28 | ||
| let trackStrokeAlpha: CGFloat = stale ? 0.28 : 0.44 | ||
| let fillAlpha: CGFloat = stale ? 0.55 : 1.0 | ||
| return NSImage(size: size, flipped: false) { rect in |
There was a problem hiding this comment.
Preserve inactive-display tint for rounded usage bars
When rounded mode is enabled for a layout whose .usageBar is rendered without a leading icon, this initializer leaves the attachment image non-template. statusImage(title:) rejects that run at its isTemplate != false guard, although the old character-only title was converted into a template image; as the MenuBarLayoutRenderedTitle contract notes, the resulting attachment will not follow AppKit's inactive-display tint, so the bar stays at active brightness on secondary displays. Keep the neutral capsule in an AppKit-owned template path and add a focused regression test.
AGENTS.md reference: AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. What this changesAdds an off-by-default preference that renders compact usage and graphical progress bars as continuous rounded capsules. Example: A weekly graphical progress token displays 60% usage.
Review scores
ProductKind: Preference · Worth it: No Merge readiness⛔ Blocked before merge - 5 items remain Keep this PR open under repository policy, but do not merge as proposed: the owner previously declined this cosmetic preference, and rounded compact usage bars introduce an inactive-display tint regression. Priority: P3 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe layout editor persists display preferences that combine with saved tokens and provider usage in the cached renderer, producing preview content and AppKit status-item images. flowchart TD
A[Layout editor] --> B[Display preferences]
B --> E[Cached layout renderer]
C[Saved layout tokens] --> E
D[Provider usage] --> E
E --> F[Settings preview]
E --> G[Menu bar status item]
Technical reviewBest possible solution: Retain the existing segmented presentation under the recorded owner decision; any approved reconsideration should preserve the renderer’s neutral template-image path. Do we have a high-confidence way to reproduce the issue? No existing product bug motivates the preference; source inspection establishes that enabling it for a fresh neutral compact Usage bar without a leading icon prevents template status-image composition. Is this the best way to solve the issue? The change reuses the existing settings and rendering owners, but adds a preference the owner explicitly declined and bypasses native dimming for compact bars. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7447bc77c249. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 11, 2026, 5:08 PM ET / 22:08 UTC. |
|
Thanks for the reviews! I missed #5013 — closing in line with that decision. I'll keep this as a personal fork. |
Summary
Adds a Rounded usage bars option (Settings → Menu Bar → Layout, next to "Show window labels"). When enabled, the
Usage barand progress-bar layout tokens render as one continuous capsule in the same style as the Meter bars icon (translucent track, hairline outline, fill clipped to the capsule, same stale dimming) instead of discrete segments.menuBarLayoutShowWindowLabels: persisted default, editor toggle, live preview, and render cache key.Screenshot
Stacked merged icon (Claude top, Codex bottom) with Rounded usage bars on, next to the system battery icon:
Notes
menu_bar_layout_rounded_usage_bars,Usage bar, %d%%) are added to every catalog with English text; translations are welcome.Testing
./Scripts/compile_and_run.sh: build, packaging, and launch smoke checks pass; verified visually in the menu bar (screenshot above).MenuBarLayoutDisplayOptionsTestsandMergedIconSettingsLabelTestsfor the new binding; full test suite andmake checknot run locally (swiftformat/swiftlint not installed).🤖 Generated with Claude Code