magpie icon indicating copy to clipboard operation
magpie copied to clipboard

[Feature request] Per-provider allowance reads: keep Agy manual and other providers automatic

Open qiankun229 opened this issue 1 week ago • 0 comments

What you want to do

Add a per-provider override for Allowance reads: Use global setting (default), Automatic, or Manual only.

I want to leave the global setting on Automatic, set only agy-cli to Manual only, and keep using its models. In that mode, startup, scheduled refreshes, opening Usage or the tray, alerts, and routing should use Agy's last known allowance without starting a quota query. The Agy card's own Refresh button (or a CLI refresh explicitly targeting Agy) should still work. Other providers should keep refreshing automatically. This would not change model calls or how the gateway handles an actual rate-limit response.

What you do today instead

On Windows, with Magpie 0.1.4572, the agy-cli plugin 0.1.141, and Antigravity CLI 1.5.3, this happened again on November 27: a background quota refresh ran agy -p /usage; agy found an expired access token, timed out after 10 seconds trying to renew it, then opened the default browser to Google OAuth. The logs also show a connection timeout to oauth2.googleapis.com. I hadn't clicked Sign in. This is the same failure mode as magpie-community/plugins#1234, which tracks the plugin bug separately.

Today my choices are to switch all providers to manual and lose automatic allowance updates for the ones that work, or disable the Agy plugin and lose its models. Hiding its allowance card doesn't stop the query. A provider-level override would let me avoid the unwanted browser launches from Agy quota checks without giving up model access or live allowance data elsewhere. It's useful independently of the plugin fix: one provider's polling behavior shouldn't force a global change.

qiankun229 avatar Nov 26 '26 19:11 qiankun229