Skip to content

fix: omit inferred credit usage above plan allowance - #236

Merged
developersdigest merged 1 commit into
mainfrom
fix/credit-usage-above-plan
Sep 16, 2026
Merged

developersdigest merged 1 commit into
mainfrom
fix/credit-usage-above-plan

Conversation

@developersdigest

@developersdigest developersdigest commented Sep 16, 2026

Copy link
Copy Markdown
Member

When the remaining credit balance exceeds the plan allowance, firecrawl credit-usage subtracts the balance from the allowance and reports negative usage and a negative percentage.

Keep showing the remaining balance and plan allowance, and omit the inferred usage line in that case. The API response does not provide enough information to calculate actual usage from those two values. Balances at or below the allowance retain the existing display; JSON output is unchanged.

Validation: TypeScript build, formatting check, and the credit-usage test file pass (17 tests). A focused rendering regression covers balances above, equal to, and below the allowance.


Summary by cubic

Fixes firecrawl credit-usage reporting negative usage when the remaining credit balance exceeds the plan allowance. The command now omits the inferred used-credits line in that case, since the API response doesn't provide enough data to compute actual usage; balances at or below the allowance keep the existing display, and JSON output is unchanged.

Written for commit 65af5e3. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.

Shadow auto-approve: would auto-approve. Fixes negative inferred credit usage by omitting that line when the remaining balance exceeds the plan allowance. The focused rendering tests cover above, equal, and below allowance cases while preserving existing valid displays.

Re-trigger cubic

@developersdigest
developersdigest merged commit 1d544b1 into main Sep 16, 2026
8 checks passed
@developersdigest
developersdigest deleted the fix/credit-usage-above-plan branch September 16, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant