feat: add group AI budget management UI#26375
Merged
Merged
Conversation
0e4e595 to
7ca5b73
Compare
Contributor
Documentation CheckUpdates Needed
New Documentation Needed
Automated review via Coder Agents |
EhabY
commented
Jun 15, 2026
7ca5b73 to
d6279fb
Compare
Docs preview📖 View docs preview for |
ssncferreira
left a comment
Contributor
There was a problem hiding this comment.
LGTM 👍 just a few comments 🙂
232eda9 to
a76e439
Compare
a76e439 to
8a49e8a
Compare
5 tasks
6abebb2 to
ced7a04
Compare
ssncferreira
approved these changes
Jun 16, 2026
ced7a04 to
1e957fa
Compare
Add an AI budget section to the group settings page, gated by the aibridge feature. The page's Save persists a per-member monthly budget via the group AI budget endpoints alongside the group patch: an empty field is uncapped (deletes the budget), 0 disables spending, and any value >= 0 is accepted. A helper shows the group-wide monthly maximum.
Gate the AI budget UI behind the ai-gateway-cost-control experiment while the feature is in development. Also give the group patch and budget save separate error handling so a budget failure is not reported as a group update failure.
1e957fa to
47e322c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an AI budget section to the group settings page (
/organizations/{org}/groups/{group}/settings), gated by theaibridgefeature.The page's existing Save persists a per-member monthly budget through
PUT/DELETE /api/v2/groups/{group}/ai/budgetalongside the group patch. An empty field is uncapped (deletes the budget),0disables spending, and any value>= 0is accepted (matching the API'sgte=0). The helper shows the resulting group-wide monthly maximum.Part of AIGOV-294. The "AI governance add-on" access toggle shown in the design is out of scope here, as no backend field or endpoint exists for it yet.
Closes AIGOV-294