Skip to content

Commit ef0f18e

Browse files
committed
refactor(core): restructure refreshAuth to await experiments before client init
1 parent f9006c4 commit ef0f18e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

packages/core/src/config/config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,14 +1593,6 @@ export class Config implements McpContext, AgentLoopContext {
15931593
this.setModel(DEFAULT_GEMINI_MODEL_AUTO);
15941594
}
15951595

1596-
// Fetch admin controls
1597-
const experiments = await this.experimentsPromise;
1598-
1599-
const requestTimeoutMs = this.getRequestTimeoutMs();
1600-
if (requestTimeoutMs !== undefined) {
1601-
updateGlobalFetchTimeouts(requestTimeoutMs);
1602-
}
1603-
16041596
const adminControlsEnabled =
16051597
experiments?.flags[ExperimentFlags.ENABLE_ADMIN_CONTROLS]?.boolValue ??
16061598
false;

0 commit comments

Comments
 (0)