mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
do not persist the fallback model (#15483)
This commit is contained in:
@@ -130,9 +130,10 @@ export function useQuotaAndFallback({
|
||||
isDialogPending.current = false; // Reset the flag here
|
||||
|
||||
if (choice === 'retry_always') {
|
||||
// Explicitly set the model to the fallback model to persist the user's choice.
|
||||
// Set the model to the fallback model for the current session.
|
||||
// This ensures the Footer updates and future turns use this model.
|
||||
config.setModel(proQuotaRequest.fallbackModel);
|
||||
// The change is not persisted, so the original model is restored on restart.
|
||||
config.setModel(proQuotaRequest.fallbackModel, true);
|
||||
|
||||
historyManager.addItem(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user