You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
menubar: poll plan usage on a background timer so opens show fresh data
The tray fetched plan usage only on open + at startup, but macOS never
repaints an open NSMenu — so a click could only paint an already-cached
snapshot and the in-flight fetch landed for the *next* open. Result: the
menu always showed the previous open's numbers (most visibly a stale
Weekly % lingering after the window reset).
Add a 2-min setInterval poller (cleared in before-quit) that keeps the
cached snapshot warm independent of tray opens. The daemon's 30s TTL +
single-flight coalesce anything faster, and plan usage drifts slowly, so
2 min is plenty. Startup + per-open refreshes stay (free under the TTL);
the poll is just what makes the displayed number current.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments