mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 00:21:09 -07:00
fix(core): reset lastUsedModelId in startChat to prevent stale tool cache
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user