fix(deco-ai-gateway): reconcile billing mode for postpaid limit updates#269
Merged
JonasJesus42 merged 2 commits intomainfrom Mar 2, 2026
Merged
fix(deco-ai-gateway): reconcile billing mode for postpaid limit updates#269JonasJesus42 merged 2 commits intomainfrom
JonasJesus42 merged 2 commits intomainfrom
Conversation
Persist limit period semantics and allow postpaid limit updates to honor explicit billing mode so legacy prepaid rows do not block limit reductions. Made-with: Cursor
🚀 Preview Deployments Ready!Your changes have been deployed to preview environments: 📦
|
Contributor
There was a problem hiding this comment.
1 issue found across 10 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="deco-ai-gateway/server/tools/usage.ts">
<violation number="1" location="deco-ai-gateway/server/tools/usage.ts:137">
P2: Handle non-positive limits so the summary doesn’t print `null% used` when `d.limit` is 0.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Prevent usage summaries from rendering null percentage values when a postpaid limit is zero or non-positive. Made-with: Cursor
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.
Persist limit period semantics and allow postpaid limit updates to honor explicit billing mode so legacy prepaid rows do not block limit reductions.
Made-with: Cursor
Summary by cubic
Persisted limit reset periods and honored explicit billing mode for postpaid limit updates. Fixes legacy prepaid rows blocking limit reductions, aligns tools around limit_period, and avoids null % in usage when a limit is zero.
Bug Fixes
New Features
Written for commit 46d6f75. Summary will update on new commits.