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 c888da5f73
commit 9762bf2965
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);
});
+4
View File
@@ -132,6 +132,10 @@ export class GeminiClient {
this.updateSystemInstruction();
};
clearCurrentSequenceModel(): void {
this.currentSequenceModel = null;
}
// Hook state to deduplicate BeforeAgent calls and track response for
// AfterAgent
private hookStateMap = new Map<