Commit Graph
14 Commits
Author SHA1 Message Date
Florian Schmidt 1723c21bd5 docs: record the Avalonia tooltip placement gotchas
The reset timeline hover needed three non-obvious fixes. Record them so the
next tooltip change does not rediscover them, and bring the current focus up
to date.

Refs #14
2026-10-18 10:57:56 +02:00
Florian Schmidt cf843290f6 Merge master into 14-reset-history 2026-10-18 10:56:24 +02:00
Florian Schmidt 4d71de785a Merge 13-panel-budget into 14-reset-history
agent-review agent review: fail
The reset history builds on #13's panel and day budgets, so its PR stacks
on #15.

Conflicts: D8 lists both the per-day budgets and the reset history. The
weight helper from #13 now takes the instance's exclusive token end, so
the day baseline counts tokens like its instance does, without the
boundary hour a later instance owns (D7).

Refs #14
2026-10-18 10:40:26 +02:00
Florian Schmidt 8bde2a3b0e core: estimate the day baseline from whole hours before the first sample
agent-review agent review: pass
The second review found that the hour bucket holding the first sample
keeps growing after it, so use later in that hour still moved the
estimated baseline and both budgets. Following D7, the estimate now
counts only the whole hours before that sample's hour. No counted bucket
can grow after the sample, so later samples and tokens no longer move it.

Refs #13
2026-10-18 10:38:22 +02:00
Florian Schmidt 1809dc913d app: fix the Resets section after the real-data check
On the developer's data the section counted the running instance as a
reset, showed zeros before anything finished, and drew the skipped time
of five early resets over almost the whole timeline (D12).

The Resets tile now counts finished instances and names the running one.
Unused, Gift and the median say when nothing finished or reset early.
Skipped time is a thin hatched bar below the plot, one lane per overlap,
and the axis no longer runs on to the running instance's reset. Percent
and limit values follow the user's culture, and figures in captions do
not wrap.

The reset tooltip is tall. Where it could not fit above or below the
pointer it slid over it, took the hover from the chart and vanished.
Tall tooltips now open beside the pointer and use the width DataTooltip
asks for.

Refs #14
2026-10-18 10:37:37 +02:00
Florian Schmidt d2cf2c282a docs: count only whole hours before the first sample for an estimated baseline
Token history is kept per hour, and the hour that holds the day's first
sample keeps growing after it, so use in that hour still moved the budget
(second review of #15). The developer chose another round with this rule
on 2026-10-18.

Refs #13
2026-10-18 10:23:32 +02:00
Florian Schmidt 09f7633eb5 core: keep an estimated day baseline fixed and the tile rows equal
agent-review agent review: fail
An estimated day baseline took its scale from the newest sample, so use
from the web lowered the budget while today stayed within it. It now takes
the scale from the first sample at or after the day start (D7). The stale
sample warning moves into the "used" caption, so tiles of one kind keep the
same rows (D8). Both answer the first review of #15.

Refs #13
2026-10-18 10:08:59 +02:00
Florian Schmidt e39a244751 app: show the reset history of each long limit window
A Resets section after the window charts gives, per provider, totals for
the listed instances, a timeline with each burn-up and the skipped time,
early resets by local hour and weekday, and a sortable instance table with
a detailed tooltip per row (D8, D12). The breakdown and reset tables share
their sorting, header and expander code.

Refs #14
2026-10-18 10:07:40 +02:00
Florian Schmidt 1c3f857a2c core: add the reset history, API list prices and window series
The developer wants figures for every reset: how long an instance lasted,
its tokens, its final use, its API value, what it left unused and what an
early reset handed out (D12, D13). Instances come from one window series,
so a Codex limit that moves between the primary and secondary slot stays
one history (D7).

Building the spans once also fixes two D7 cases: the hour in which one
instance ends and the next starts goes to the new instance instead of
being lost, and a late sample of an old instance no longer places it after
a newer one.

Refs #14
Refs #9
2026-10-18 10:07:40 +02:00
Florian Schmidt 158572c2ba docs: take an estimated day baseline's scale from the day's first sample
With the newest sample's scale, use from the web or another device moved
an estimated day baseline, and the daily budget moved with it while today
stayed within its plan (review of #15).

Refs #13
2026-10-18 10:02:02 +02:00
Florian Schmidt 941a597680 core: plan the daily budget per day, start forecasts at 2 % and follow the limit week
agent-review agent review: fail
The budget was the rest of the week over the time left, so each use today
lowered it and a partial first day was held to a full day. Now each day of
the instance has its share, its even pace and its budget. Today's budget
starts from the use at the day start and does not move with today's use
(D7). Forecasts start at 2 % of a window, so an early reset no longer hides
them for most of a day.

Limit tiles of one kind show the same rows, with placeholders that say why
a value is missing. The week chart draws per-day steps and marks the
instance start and reset (D8). Week token totals follow the provider's
limit week and say since when, with the calendar week as fallback (D9).

Refs #13
2026-10-18 09:55:41 +02:00
Florian Schmidt f9027e8a27 docs: say which samples D7 ignores as stale
Refs #14
2026-10-18 09:37:35 +02:00
Florian Schmidt 3ab1ce4f95 docs: record the reset history, API value at list prices and window series
The developer asked for figures per reset, with wastage, API value and
the gift of early resets (D12, D13). Codex moves its week between slots,
so analyses follow a window series (D7). The reset hour before a gap
goes to the ending instance (#9).

Refs #14
2026-10-18 09:37:21 +02:00
Florian Schmidt a8785fa453 docs: start forecasts at 2 %, plan the daily budget from the day start, follow the limit week
The developer wants forecasts earlier, a daily budget that today's use
does not shrink, and week totals that follow the limit week (D7, D8, D9).

Refs #13
2026-10-18 09:37:00 +02:00