v1.1.26
Lower idle memory for the menu-bar app
The AIMonitor menu-bar app's memory grew the longer it ran — a fresh launch is ~27 MB, but a process left running for days climbed past 190 MB. This release stops that growth.
What changed
The widget polled its local database every 2 seconds for its entire lifetime — running all of its queries and refreshing the whole UI even while the popover was closed and nothing was on screen. That constant churn slowly accumulated memory.
Now each poll only does the work something is actually showing:
- The menu-bar title always stays live (active account + 5h usage).
- Per-account bars and sparklines refresh only while the popover is open.
- The heavy token-usage history is read only while the Token-usage window is open.
- When everything is closed, the poll slows from 2s to 5s.
In testing — accelerated to compress days of polling into minutes — the old build's footprint climbed steadily while the new one held flat.
Upgrade
brew upgrade aimonitorFixes #32