Repository navigation
Conversation
Automated AI review
Verified: On a single bar instance, the freshness text and the low-allowance state machine behave as described. The age wording, the stale threshold (the larger of 30 minutes or two refresh intervals), the missing-timestamp and future-clock handling, notify-once with rearm after recovery, the stale/error skip and the prepaid-balance path all match the PR description. The collectors' Python Two issues are worth addressing: duplicate alerts on multi-monitor setups or after widget re-creation, and a freshness line that reports when the record was written rather than when the usage was measured. Alerts repeat once per monitor and after widget re-creationThe bar builds one surface per screen ( Any re-creation of the widget also starts from an empty map and alerts again while the provider stays low. By source, this happens on a structural layout change, a horizontal/vertical bar switch, a monitor hotplug (for the new screen's copy) and Impact: With the agents widget in the default bar layout, a two-monitor desktop gets two identical "allowance low" toasts per crossing. The README's "once per shell session" holds only for a single instance that is never rebuilt. Suggested change: Keep updating "Updated" reflects the record write time, not when usage was measuredThe new line reads The alert in this case is normally still accurate: within a window that has not reset, remaining allowance does not grow, so a cached low reading remains low. The freshness line is what misleads, because it does not flag stale data when the endpoint is unreachable or rate limited, the case where a freshness indicator helps most. Synced-only providers have a related gap. They fall back to Impact: The freshness line can report "Updated just now" over Claude limits that were not re-measured, and over synced-only data of any age. Suggested change: Have the Claude collector emit the probe cache's existing Optional: Two smaller behaviors, both traced in source:
Review informationTest scope: Source review of head AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments with targeted follow-up questions, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
Part of this has landed separately: #14225 (merged Oct 4) keeps stale usage visible and puts "Last updated … ago" in the tooltip. The branch also conflicts with |
When an agent usage record stops refreshing, the panel still shows its last limits without telling the user how old they are. And when a subscription window or prepaid balance runs low, the user only finds out by opening the panel.
Show the record's update age in the agents panel and bar tooltip, with a stale warning after two refresh intervals (at least 30 minutes). Notify once per shell session when a fresh subscription allowance or funded prepaid balance reaches 10% remaining; the threshold is configurable, and the alert rearms after recovery. Records with a usage error or stale timestamp do not trigger alerts. Synced-only agents use the aggregate update time for freshness.
This leaves the bar percentage and Used/Left display controls to #10175 and #7547, which already propose those features.
Validation:
agents-panel-test.sh,plugin-validate-test.sh,manifest-entrypoints-test.sh,qml-text-format-test.sh,git diff --check, and manifest JSON validation pass. I also verified the freshness display in the running Omarchy shell../test/allwas attempted; unrelated checkout/environment checks fail (read-only runtime lock, missingomarchy-pkgscheckout, and system-path tests). No agents-specific test failed.