fix(billing): fix overage strategy lifecycle and settings integration (#21236)

This commit is contained in:
Gaurav
2026-03-06 19:14:44 -08:00
committed by GitHub
parent 33be30ab04
commit 9a7427197b
10 changed files with 92 additions and 23 deletions
@@ -1376,6 +1376,9 @@ export const useGeminiStream = (
if (!options?.isContinuation) {
setModelSwitchedFromQuotaError(false);
config.setQuotaErrorOccurred(false);
config.resetBillingTurnState(
settings.merged.billing?.overageStrategy,
);
suppressedToolErrorCountRef.current = 0;
suppressedToolErrorNoteShownRef.current = false;
lowVerbosityFailureNoteShownRef.current = false;
@@ -1536,6 +1539,7 @@ export const useGeminiStream = (
setThought,
maybeAddSuppressedToolErrorNote,
maybeAddLowVerbosityFailureNote,
settings.merged.billing?.overageStrategy,
],
);