fix(core): reset lastUsedModelId in startChat to prevent stale tool cache

This commit is contained in:
Aishanee Shah
2026-02-08 16:29:35 +00:00
parent 58ecc29d5b
commit 991551b3f5

View File

@@ -332,6 +332,7 @@ export class GeminiClient {
): Promise<GeminiChat> {
this.forceFullIdeContext = true;
this.hasFailedCompressionAttempt = false;
this.lastUsedModelId = undefined;
const toolRegistry = this.config.getToolRegistry();
const toolDeclarations = toolRegistry.getFunctionDeclarations();