Add optional colors for menu bar quota pace - #3429
Conversation
|
🦞👀 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 SummaryThis 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. |
|
Codex review: needs real behavior proof before merge. Reviewed September 4, 2026, 9:30 PM ET / September 5, 2026, 01:30 UTC. ClawSweeper reviewWhat this changesAdds a default-off “Color pace” preference that colors signed menu-bar quota pace and its preview, with persisted settings, translations, documentation, and focused tests. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this is a focused, distinct contribution not present on pinned main or v0.56.5, and it remains paired with the author's open feature request. No blocking correctness defect was found; the repository profile also prohibits automatic cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherCodexBar turns provider usage and reset timing into signed quota-pace values. Its shared menu-bar layout renderer combines those values with display preferences to produce the live status-item title and Settings preview. flowchart LR
A[Provider usage and reset timing] --> B[Signed pace text and rounded values]
C[Saved Color pace preference] --> D[Shared layout renderer]
B --> D
D --> E[Optional color with stale dimming]
E --> F[Live menu bar]
E --> G[Settings preview]
Decision needed
Why: The patch adds a permanent user-facing preference, while the supplied discussion contains only contributor-requested direction; technical correctness cannot establish product acceptance. Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Use optional color as a supplement to readable signed pace, preserving monochrome defaults, saved layouts, neutral values, and stale-state visibility. Do we have a high-confidence way to reproduce the issue? Not applicable: this proposes optional visual behavior rather than reporting a broken existing contract. Source inspection establishes the current monochrome behavior; no runtime reproduction was executed. Is this the best way to solve the issue? Yes, technically: extending the existing renderer with its already-rounded pace metrics avoids parallel tokens or another calculation path, and the additive default-off key preserves existing layouts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 96b83b7b9f15. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Menu bar pace currently requires remembering what its sign means. Add an opt-in “Color pace” toggle under Menu Bar → Layout: usage behind the expected pace is green (reserve), usage ahead is red (risk of early exhaustion), and zero or unavailable pace remains neutral.
The existing Session, Weekly, and Auto pace tokens retain their signed values. The preview uses the same renderer, stale colors remain dimmed, and the setting participates in render caching and settings observation. Existing layouts and the default monochrome appearance are preserved. Includes settings labels in all supported locales.
The toggle uses the existing token renderer and leaves layout serialization unchanged.
Validation:
make checkis blocked locally by an unchanged process-cleanup fixture timing failure:test_timeout_drains_separate_child_group_after_parent_exits_on_termreports that fixture identities were not observed before drain. The same test fails in isolation.Live UI verification: the debug app was launched alongside the installed app without replacing it; the Color pace switch appeared under Menu Bar → Layout, and the live + pace value rendered red for ahead-of-pace usage. The renderer examples also use the actual AppKit renderer with synthetic values.
Closes #3428