Skip to content

feat: period comparison, per-account history, more rows with a series - #105

Merged
Muddyblack merged 2 commits into
mainfrom
feat/period-comparison
Nov 15, 2026
Merged

Muddyblack merged 2 commits into
mainfrom
feat/period-comparison

Conversation

@Muddyblack

Copy link
Copy Markdown
Owner

Period comparison ("+12% vs last week"), dropped with the ETA in 2c2e289 and still listed in the README, is back on the quota rows. Rows carry an optional periodMs (5 h, 7 d, or the calendar month that ends at resetAt), and UsageHistory.periodChange compares the usage now with the same point of the period before:

  • a window of a day or more against itself, as far into the window before; a monthly one is laid over the calendar month before it, so the 10th is held against the 10th whether that month had 28 days or 31;
  • a shorter one (a 5-hour session starts when it is first used) as today against yesterday up to the same time, summed across the resets. It reports a relative change and says nothing when the history has a hole at the point compared with or the baseline is under 5 points. The old version read whatever sample lay one fixed period back.

Extra accounts (claude@work) now record their own history series: relabel suffixes historyValues, chartWindows[].key and quotaWindows[].historyKey with "@", so chart, ETA and comparison read that login alone instead of a series fed by two. The chart's Antigravity and money special cases follow the suffix. History recorded before this stays under the base keys.

Rows that had no series get one, and with it an ETA and a comparison: Z.AI 7-day tokens and monthly tools (za7, zat), Cursor Auto and API (cua, cup), Claude scoped weeks (their row key) and Codex additional limits (cx__s / _w).

scripts/eta-replay.js scores the ETA's burn rate against a recorded history file, per half-life and next to the old six-hour fit. On 48 days of real history the new rate is ~15% closer overall one hour ahead (26% on the active Claude session), 30 min is the best session half-life and 6 h the best for weekly rows 24 h ahead: the shipped constants stand.

Period comparison ("+12% vs last week"), dropped with the ETA in 2c2e289
and still listed in the README, is back on the quota rows. Rows carry an
optional periodMs (5 h, 7 d, or the calendar month that ends at resetAt),
and UsageHistory.periodChange compares the usage now with the same point
of the period before:
- a window of a day or more against itself, as far into the window
  before; a monthly one is laid over the calendar month before it, so the
  10th is held against the 10th whether that month had 28 days or 31;
- a shorter one (a 5-hour session starts when it is first used) as today
  against yesterday up to the same time, summed across the resets.
It reports a relative change and says nothing when the history has a hole
at the point compared with or the baseline is under 5 points. The old
version read whatever sample lay one fixed period back.

Extra accounts (claude@work) now record their own history series: relabel
suffixes historyValues, chartWindows[].key and quotaWindows[].historyKey
with "@<key>", so chart, ETA and comparison read that login alone instead
of a series fed by two. The chart's Antigravity and money special cases
follow the suffix. History recorded before this stays under the base keys.

Rows that had no series get one, and with it an ETA and a comparison:
Z.AI 7-day tokens and monthly tools (za7, zat), Cursor Auto and API (cua,
cup), Claude scoped weeks (their row key) and Codex additional limits
(cx_<model>_s / _w).

scripts/eta-replay.js scores the ETA's burn rate against a recorded
history file, per half-life and next to the old six-hour fit. On 48 days
of real history the new rate is ~15% closer overall one hour ahead (26%
on the active Claude session), 30 min is the best session half-life and
6 h the best for weekly rows 24 h ahead: the shipped constants stand.
@github-actions

Copy link
Copy Markdown
Contributor

Windows screenshots (ef20c7b)

Build and downloadable PNGs · updated with every new commit

View screenshots (5)

desktop-00-sessions.png

desktop-00-sessions.png

desktop-01-claude.png

desktop-01-claude.png

desktop-02-antigravity.png

desktop-02-antigravity.png

desktop-03-settings-providers.png

desktop-03-settings-providers.png

desktop-04-settings-appearance.png

desktop-04-settings-appearance.png

github-actions Bot added a commit that referenced this pull request Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

macOS screenshots (ef20c7b)

Build and downloadable PNGs · updated with every new commit

View screenshots (3)

desktop-00-sessions.png

desktop-00-sessions.png

desktop-03-settings-providers.png

desktop-03-settings-providers.png

desktop-04-settings-appearance.png

desktop-04-settings-appearance.png

github-actions Bot added a commit that referenced this pull request Nov 15, 2026
@Muddyblack
Muddyblack merged commit 9f1bad7 into main Nov 15, 2026
21 checks passed
@Muddyblack
Muddyblack deleted the feat/period-comparison branch November 15, 2026 21:34
github-actions Bot added a commit that referenced this pull request Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant