mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 10:43:47 +00:00
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. |
||
|---|---|---|
| .. | ||
| autostart.rs | ||
| cli.rs | ||
| config.rs | ||
| dock.rs | ||
| fx.rs | ||
| lib.rs | ||
| main.rs | ||
| plan.rs | ||
| refresh.rs | ||
| session.rs | ||
| settings.rs | ||
| tray_badge.rs | ||
| tray_linux.rs | ||
| tray_status.rs | ||
| update.rs | ||