(fix): appcontainer should not poll and footer should use currentModel from ui state (#11923)

This commit is contained in:
Pyush Sinha
2025-10-27 15:33:12 -07:00
committed by GitHub
parent cb0947c501
commit 2dfb813c90
6 changed files with 72 additions and 12 deletions
+2
View File
@@ -8,6 +8,7 @@ import type { Config } from '../config/config.js';
import { AuthType } from '../core/contentGenerator.js';
import { DEFAULT_GEMINI_FLASH_MODEL } from '../config/models.js';
import { logFlashFallback, FlashFallbackEvent } from '../telemetry/index.js';
import { coreEvents } from '../utils/events.js';
export async function handleFallback(
config: Config,
@@ -62,6 +63,7 @@ export async function handleFallback(
function activateFallbackMode(config: Config, authType: string | undefined) {
if (!config.isInFallbackMode()) {
config.setFallbackMode(true);
coreEvents.emitFallbackModeChanged(true);
if (authType) {
logFlashFallback(config, new FlashFallbackEvent(authType));
}