fix(plan): after exiting plan mode switches model to a flash model (#23885)

This commit is contained in:
Adib234
2026-03-26 14:45:03 -04:00
committed by GitHub
parent 207246a310
commit feffcd6761
3 changed files with 72 additions and 1 deletions
+1
View File
@@ -2413,6 +2413,7 @@ export class Config implements McpContext, AgentLoopContext {
if (isPlanModeTransition || isYoloModeTransition) {
if (this._geminiClient?.isInitialized()) {
this._geminiClient.clearCurrentSequenceModel();
this._geminiClient.setTools().catch((err) => {
debugLogger.error('Failed to update tools', err);
});