Repository navigation
Conserve low coding credits across Auto routes and retries - #505
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
This was referenced Nov 12, 2026
This branch was successfully deployed
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.
When CLI-reported credits or allowance run low, Auto now conserves usage with configurable 20% allowance / 10 provider-credit-unit thresholds, the least expensive suitable model tier, capped effort and standard speed. Account-bound quota reads stay inside the installed CLIs; coding continues through those CLIs.
Every automatic model or account replacement rechecks the actual account quota, catalogue and task capability requirement before coding. Enabled Claude rotation can skip exhausted fresh-thread accounts; replacements share the original premium admission, account-scoped cooldowns avoid cross-account contamination, and conservation avoids a separate paid naming turn. Unknown balances remain explicit; affirmative credit availability is usable without inventing an amount.
An independent efficiency review found four integration defects, each reproduced and repaired with a behavioral regression. Local qualification on integrated runtime f682cdf: build and typechecks passed; 216 focused tests passed; the full unit suite passed 2,530 cases with 36 explicit skips; desktop UI passed 518 cases with 11 explicit skips; all seven site cases passed. Installed Codex 0.167.2 supplied metadata with zero inference turns. The final documentation commit records those receipts without changing runtime code.
Efficiency uses model tiers, effort, quota headroom and cache reuse because the CLIs do not expose token prices. Exact dollar savings, live billing/coding and installed-release acceptance are not claimed. See docs/reviews/2026-11-12-credit-conservation-delivery.md for the review repairs and qualification boundaries.