codeburn/windows/src-tauri/src
iamtoruk f019b45c85 feat(windows): one quota poll on the cadence, for every window that shows one
The quota store already had the cadence setting and the mac's backoff, but
two things went around it. The Capacity Dock never used the store at all: it
kept its own fetch on a fixed five minutes, so the setting did nothing there.
And every usage tick called the store's refresh directly, which with an open
popover meant a quota spawn every thirty seconds however the cadence was set.

The dock now reads the same store as the popover and the settings window, so
one setting governs all three and a failure backs off with jitter rather than
retrying on the dot. The store reads the cadence itself instead of waiting to
be told, because three windows run their own copy and one that forgot to wire
it would poll at the default forever.

Refreshes are split by who asked. Retry, Refresh Now and a key just saved are
a reader asking and outrank the cadence. A background usage tick only rides
along with a poll the cadence has already earned, and never in Manual. The
popover opening gets an answer the cadence had not earned yet, down to the
mac's thirty-second interactive floor.

Two windows still keep two stores, and their timers fire within a second of
each other, so `dock_quota` in Rust now coalesces: whoever asks second waits
for the run in flight and is answered from it. The cache lives ten seconds,
far below the interactive floor, so a Retry is always a live answer.
2026-09-01 23:26:53 -07:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs feat(windows): check GitHub for a newer app and CLI, and install both 2026-09-01 22:11:22 -07:00
config.rs feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dock.rs feat(windows): the rail turns mid-drag when the edge in reach turns 2026-09-01 21:55:50 -07:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
lib.rs feat(windows): one quota poll on the cadence, for every window that shows one 2026-09-01 23:26:53 -07:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
refresh.rs feat(windows): no background refresh while nobody can see the tray 2026-09-01 23:00:09 -07:00
session.rs feat(windows): no background refresh while nobody can see the tray 2026-09-01 23:00:09 -07:00
settings.rs feat(windows): provider panes gain config directories, cadence and API keys 2026-09-01 20:00:42 -07:00
tray_badge.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
update.rs fix(windows): the secret scrubber cannot panic on multi-byte output 2026-09-01 22:35:31 -07:00