Skip to content

Commit f36dec6

Browse files
fix(patch): cherry-pick 643f2c0 to release/v0.11.1-pr-12300 to patch version v0.11.1 and create version 0.11.2 (#12335)
Co-authored-by: Victor May <mayvic@google.com>
1 parent 5213d9f commit f36dec6

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/core/src/config/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ describe('Server Config (config.ts)', () => {
581581
useModelRouter: true,
582582
});
583583
await config.refreshAuth(AuthType.LOGIN_WITH_GOOGLE);
584-
expect(config.getUseModelRouter()).toBe(false);
584+
expect(config.getUseModelRouter()).toBe(true);
585585
});
586586

587587
it('should enable model router by default for other auth types', async () => {

packages/core/src/config/config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,7 @@ export class Config {
476476
this.useWriteTodos = params.useWriteTodos ?? false;
477477
this.initialUseModelRouter = params.useModelRouter ?? false;
478478
this.useModelRouter = this.initialUseModelRouter;
479-
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [
480-
AuthType.LOGIN_WITH_GOOGLE,
481-
];
479+
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [];
482480
this.enableMessageBusIntegration =
483481
params.enableMessageBusIntegration ?? false;
484482
this.codebaseInvestigatorSettings = {

0 commit comments

Comments
 (0)