refactor: make user AI budget and spend endpoints consistent - #27611
#27611Open
ssncferreira wants to merge 1 commit into
maincoder/coder:mainfrom
ssncf/refactor-user-spend-limitcoder/coder:ssncf/refactor-user-spend-limitCopy head branch name to clipboard
Open
refactor: make user AI budget and spend endpoints consistent#27611ssncferreira wants to merge 1 commit intomaincoder/coder:mainfrom ssncf/refactor-user-spend-limitcoder/coder:ssncf/refactor-user-spend-limitCopy head branch name to clipboard
ssncferreira wants to merge 1 commit into
maincoder/coder:mainfrom
ssncf/refactor-user-spend-limitcoder/coder:ssncf/refactor-user-spend-limitCopy head branch name to clipboard
Conversation
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
ssncferreira
force-pushed
the
ssncf/refactor-user-spend-limit
branch
from
July 29, 2026 09:59
bc3d981 to
cd80e33
Compare
ssncferreira
force-pushed
the
ssncf/refactor-user-spend-limit
branch
from
July 29, 2026 10:05
cd80e33 to
9c53517
Compare
ssncferreira
marked this pull request as ready for review
July 29, 2026 10:07
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Makes the user AI cost control endpoints consistent.
Changes
spend_limit_microsandlimit_sourcefields onGET /users/{user}/ai/spendwith a nestedeffective_budget, reusing the type behindgroup_budget. The flat pair made it possible to encode a limit without a source.AIGroupBudgettoAIBudgetLimit, since it also carriesuser_overridelimits and is no longer group-specific. The type name is not part of the wire format./users/{user}/ai/budgetto/users/{user}/ai/budget/override. The endpoint only ever managed the per-user override, which the type, the handlers, and the operation IDs all already said; the path was the only place that didn't.Note
Initially generated by Claude Opus 4.7, modified and reviewed by @ssncferreira