diff --git a/packages/core/src/core/client.ts b/packages/core/src/core/client.ts index d6afeac4be..4781dd7618 100644 --- a/packages/core/src/core/client.ts +++ b/packages/core/src/core/client.ts @@ -332,6 +332,7 @@ export class GeminiClient { ): Promise { this.forceFullIdeContext = true; this.hasFailedCompressionAttempt = false; + this.lastUsedModelId = undefined; const toolRegistry = this.config.getToolRegistry(); const toolDeclarations = toolRegistry.getFunctionDeclarations();