Add optional upcoming reset schedule display - #2468
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02e119dca4
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed the P2 review note: upcoming reset projection is now gated to fixed rolling cadences only ( |
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 11:04 AM ET / 15:04 UTC. ClawSweeper reviewWhat this changesAdds an off-by-default preference that displays estimated future reset times for supported rolling quotas in the menu and Merge readinessThe implementation and submitted proof are credible, and the prior dashboard-test overlap appears removed from the rebuilt head. This remains open because it deliberately adds a persistent Menu/CLI feature and the repository owner explicitly requested product sign-off before selecting it for merge. Priority: P2 Review scores
Verification
How this fits togetherCodexBar collects provider quota windows and formats their next-reset information for the menu-bar card and CLI usage view. This change derives additional future boundaries only for known fixed rolling windows, then renders them according to the user’s reset-time display preference. flowchart LR
A[Provider quota window] --> B[Reset formatter]
B --> C{Fixed rolling cadence?}
C -->|Yes| D[Projected reset boundaries]
C -->|No| E[Current reset only]
F[Menu preference] --> G[Menu and CLI renderers]
D --> G
E --> G
G --> H[Menu card and usage output]
Decision needed
Why: The patch is mechanically bounded and tested, but whether projected quota timing is a desirable persistent product capability is a user-experience and scope decision that code review cannot determine. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Obtain explicit owner approval for the opt-in schedule concept, then merge the bounded fixed-cadence implementation while retaining the existing off-by-default behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new opt-in capability rather than reporting broken existing behavior. The supplied menu screenshot and CLI on/off outputs do provide credible after-change behavior evidence. Is this the best way to solve the issue? Unclear pending product direction: the fixed-cadence gate and off-by-default preference are a narrow implementation, but the owner must decide whether projected schedules should be a supported Menu/CLI feature at all. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02b4ba278c81. LabelsLabel 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
HistoryReview history (7 earlier review cycles)
|
|
Addressed follow-ups on
linux-arm64 @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pushed an empty commit to retrigger CI. The macOS failure on the previous run was unrelated |
|
Root-caused the recurring macOS CI failure in
Fix: isolate UserDefaults for clock-rollover and provenance controller construction (force 30-day window). Reproduced locally with a polluted global default; suite now passes with that pollution present. |
|
Addressed the remaining ClawSweeper before-merge localization blocker:
Still needs maintainer product confirmation for the new opt-in Menu preference (ClawSweeper decision item). CI should be green on this head. @clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Triage note: this is well-built (green CI, live proof appreciated), but as a new persistent Menu/CLI feature it needs Peter's product sign-off, and it wasn't selected in this triage round. Two things to address while it waits: (1) when |
76a54d6 to
02b4ba2
Compare
Project the next few rolling-quota resets behind a Menu preference, and honor countdown vs date/time style for both the next reset and estimated follow-ups. Co-authored-by: Cursor <cursoragent@cursor.com>
Skip billing-cycle windows that also set windowMinutes (Cursor/Grok/Abacus and monthly plans) so estimated schedules stay limited to 1h/4h/5h/daily/weekly quotas. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
512164b to
518da0a
Compare
Summary
resetsAt+windowMinutes.1h/4h/5h/ daily / weekly). Billing-cycle windows are not projected.usagehonors the same preference and Reset times style when reading UserDefaults.main; unrelated Spend Dashboard test-isolation commits were removed from the branch.Real behavior proof
Fresh packaged release bundle (
CodexBar.app→/Applications/CodexBar.app), Claude account.Menu (countdown, preference on)
Shows Session
Then 9h 59m · 14h 59m · 19h 59mand WeeklyThen 8d 18h · 15d 18h · 22d 18h.CLI (same settings, redacted runtime)
On + Countdown
On + Date & time
Off
(no
Then …lines)Raw artifacts:
docs/screenshots/upcoming-resets-cli-*.txtTest plan
make checkswift test --filter 'MenuCardUpcomingResetsTests|UsageFormatterTests'— 53 testsMaintainer decision still needed
Confirm this opt-in persistent Menu/CLI preference is desired product-wise.
@clawsweeper re-review
Made with Cursor