From ef0f18e4296add245685ac73a44ff5cbe81217a8 Mon Sep 17 00:00:00 2001 From: Yuna Seol Date: Wed, 1 Apr 2026 14:20:32 -0400 Subject: [PATCH] refactor(core): restructure refreshAuth to await experiments before client init --- packages/core/src/config/config.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index d0c04b3773..0edd4af7b0 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -1593,14 +1593,6 @@ export class Config implements McpContext, AgentLoopContext { this.setModel(DEFAULT_GEMINI_MODEL_AUTO); } - // Fetch admin controls - const experiments = await this.experimentsPromise; - - const requestTimeoutMs = this.getRequestTimeoutMs(); - if (requestTimeoutMs !== undefined) { - updateGlobalFetchTimeouts(requestTimeoutMs); - } - const adminControlsEnabled = experiments?.flags[ExperimentFlags.ENABLE_ADMIN_CONTROLS]?.boolValue ?? false;