Add per-provider menu bar percent window picker - #3124
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. |
|
Heads up: this touches the same spot in |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0964dfd42e
ℹ️ 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".
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 1:47 PM ET / 17:47 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds an Auto, Session, or Weekly percentage picker to provider settings, reusing existing layout storage while preserving other tokens and the global icon style. Merge readiness✅ Ready for maintainer review This remains a useful, maintainer-engaged usability improvement. Both earlier findings are resolved, native evidence demonstrates the picker interaction, and no blocking defect was found. Repository policy also excludes automatic closure. Priority: P3 Review scores
Verification
How this fits togetherCodexBar turns provider usage snapshots and saved menu bar layouts into status-item text. The new picker edits the selected provider’s percentage tokens before the existing renderer consumes that layout. flowchart LR
A[Provider capabilities] --> C[Provider settings picker]
B[Existing layout and icon style] --> C
C --> D[Update top-level percent tokens]
D --> E[Saved provider layout]
E --> F[Menu bar renderer]
G[Provider usage snapshot] --> F
F --> H[Menu bar percentage]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the simplified picker as a thin editor over existing provider layouts, with advanced token composition remaining in the layout editor. Do we have a high-confidence way to reproduce the issue? Not applicable to this usability feature; the supplied native captures demonstrate the new selection flow, and source inspection confirms the earlier defects are repaired. Is this the best way to solve the issue? Yes. The picker reuses the existing provider override and renderer rather than creating competing persisted state, and owner discussion supports the narrowed behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 07c8794735fd. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Preserve provider capabilities, conditional and reset tokens, and the global icon style; verify V3 reconstruction and native picker interaction. Co-authored-by: Nguyễn Nam Long <j2teamnnl@gmail.com>
df4c25d to
7ccdbbe
Compare
Choose Auto, Session, or Weekly as the percent window in provider settings. Choices follow provider capabilities, and the picker appears only for applicable Icon and Percent layouts. It edits top-level percent tokens for that provider while preserving the global style, custom conditional tokens, and direct lane tokens.
Built on the landed reset-window support in #3481. Paired V3 tests verify explicit reset tokens, conditional libraries, and other providers’ overrides survive a percent change and reload.
Validation: focused picker/renderer tests, paired persistence tests, a full standalone suite, and independent review passed. Signed native pointer proof changed Codex to Weekly while Claude stayed Auto, then verified reconstruction. The final combined tree passes 122 focused tests and formatting/lint; its full suite and exact-head CI are the final landing gates.
Includes UI documentation and an Unreleased entry. Thanks @J2TeamNNL!
Synthetic proof captures: