Summary
Fix the mmx quota reset countdown so that when less than one minute remains until a quota window resets, the cell falls back to seconds (Xs) instead of rounding down to 0m, which currently makes the last minute look identical to "already reset".
Motivation
After #240 was implemented (#243), the reset countdown for each window (5h Reset …, 1d Reset …, etc.) drops the seconds component and only renders hours + minutes. Once the remaining time crosses below 60s, the minute unit rounds down to 0m, so the cell reads 5h Reset 0m (or 1d Reset 0m for the daily window). That is misleading: the window has not actually reset yet, there is just under a minute left, and the user has no way to tell that from the table.
Showing seconds for the last minute keeps the countdown continuous and accurate all the way down to zero, which matches the unit ladder already used in the proposed weekly cell from #248 (1w Reset 54s, 1w Reset 9s).
Comparison
Current Output
╭─────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬────────────────┤
│ general Left 29% Wk left 78% │ 5h Reset 0m │
├────────────────────────────────────────────────────────────┼────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 0m │
╰────────────────────────────────────────────────────────────┴────────────────╯
Expected Output
╭─────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬────────────────┤
│ general Left 29% Wk left 78% │ 5h Reset 38s │
├────────────────────────────────────────────────────────────┼────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 0m │
╰────────────────────────────────────────────────────────────┴────────────────╯
Steps to Reproduce
- Run
mmx quota (or mmx --verbose quota show) while the 5-hour rolling window has between 1s and 59s left until reset.
- Observe the
5h Reset … cell.
- The cell shows
5h Reset 0m instead of the actual remaining seconds (e.g. 5h Reset 38s).
Suggested Behavior
- When the remaining time is
>= 1 minute, keep the existing format (Hh Mm).
- When the remaining time is
< 1 minute, fall back to seconds: Hh Reset Xs (or Xd Reset Xs, depending on the window).
- Once the countdown reaches zero, the cell can read
Reset now or stay blank — happy to align on whichever feels consistent with the per-row behavior.
Discussion & Implementation
Same offer as in #240 and #248: happy to discuss and adjust this fix based on feedback, and if the maintainers approve, I can implement the change and open a pull request.
cc @SaladDay — this affects the same reset cell introduced in #243, and would also unblock the < 1 minute example shown in #248.
Summary
Fix the
mmx quotareset countdown so that when less than one minute remains until a quota window resets, the cell falls back to seconds (Xs) instead of rounding down to0m, which currently makes the last minute look identical to "already reset".Motivation
After #240 was implemented (#243), the reset countdown for each window (
5h Reset …,1d Reset …, etc.) drops the seconds component and only renders hours + minutes. Once the remaining time crosses below 60s, the minute unit rounds down to0m, so the cell reads5h Reset 0m(or1d Reset 0mfor the daily window). That is misleading: the window has not actually reset yet, there is just under a minute left, and the user has no way to tell that from the table.Showing seconds for the last minute keeps the countdown continuous and accurate all the way down to zero, which matches the unit ladder already used in the proposed weekly cell from #248 (
1w Reset 54s,1w Reset 9s).Comparison
Current Output
Expected Output
Steps to Reproduce
mmx quota(ormmx --verbose quota show) while the 5-hour rolling window has between 1s and 59s left until reset.5h Reset …cell.5h Reset 0minstead of the actual remaining seconds (e.g.5h Reset 38s).Suggested Behavior
>= 1 minute, keep the existing format (Hh Mm).< 1 minute, fall back to seconds:Hh Reset Xs(orXd Reset Xs, depending on the window).Reset nowor stay blank — happy to align on whichever feels consistent with the per-row behavior.Discussion & Implementation
Same offer as in #240 and #248: happy to discuss and adjust this fix based on feedback, and if the maintainers approve, I can implement the change and open a pull request.
cc @SaladDay — this affects the same reset cell introduced in #243, and would also unblock the
< 1 minuteexample shown in #248.