User-level AI Credits budget not tracking consumed_amount — prevent_further_usage never triggers for values > $0 #198005
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Copilot Enterprise
Body
Summary
I configured a user-level AI Credits budget at enterprise level with
prevent_further_usage: trueand a limit of $1. The budget never blocksusage because
consumed_amountstays at0.0regardless of actual consumption.A $0 budget does block correctly — so the field is read somewhere, but the
pipeline that updates
consumed_amountappears broken for any value > $0.Environment
Steps to Reproduce
$1across several sessions — enough to clearly exceed $1 in AI credits
Expected Behavior
consumed_amountreflects real usage. Once it reaches the configuredbudget_amount,prevent_further_usage: trueblocks further access.Actual Behavior
consumed_amountremains0.0. Copilot continues working with nointerruption regardless of how much is consumed.
API Response (sanitized)
{ "budget_type": "BundlePricing", "budget_product_sku": "ai_credits", "budget_scope": "user", "budget_amount": 1, "prevent_further_usage": true, "consumed_amount": 0.0 }Key Observations
budget_amount: 0blocks the user immediately(different enforcement path — static rule, no counter needed)
consumed_amountnever increments, so thethreshold is never reached
budget_product_sku: "ai_credits"(not the legacy
premium_requests)prevent_further_usage: trueRelated Discussions
This is distinct from both: the budget exists, is correctly typed, and is
reachable via API — but the consumption counter simply never updates.
Impact
With
consumed_amountstuck at0.0, there is no effective per-userenforcement for any value > $0. The only working option is
$0(full block),with no granularity in between.
Beta Was this translation helpful? Give feedback.
All reactions