mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
feat(a2a): Urgent fix - Process modelInfo agent message (#14315)
This commit is contained in:
@@ -66,6 +66,7 @@ export class Task {
|
||||
eventBus?: ExecutionEventBus;
|
||||
completedToolCalls: CompletedToolCall[];
|
||||
skipFinalTrueAfterInlineEdit = false;
|
||||
modelInfo?: string;
|
||||
|
||||
// For tool waiting logic
|
||||
private pendingToolCalls: Map<string, string> = new Map(); //toolCallId --> status
|
||||
@@ -135,7 +136,7 @@ export class Task {
|
||||
id: this.id,
|
||||
contextId: this.contextId,
|
||||
taskState: this.taskState,
|
||||
model: this.config.getModel(),
|
||||
model: this.modelInfo || this.config.getModel(),
|
||||
mcpServers: servers,
|
||||
availableTools,
|
||||
};
|
||||
@@ -230,7 +231,7 @@ export class Task {
|
||||
traceId?: string;
|
||||
} = {
|
||||
coderAgent: coderAgentMessage,
|
||||
model: this.config.getModel(),
|
||||
model: this.modelInfo || this.config.getModel(),
|
||||
userTier: this.config.getUserTier(),
|
||||
};
|
||||
|
||||
@@ -647,6 +648,9 @@ export class Task {
|
||||
case GeminiEventType.Finished:
|
||||
logger.info(`[Task ${this.id}] Agent finished its turn.`);
|
||||
break;
|
||||
case GeminiEventType.ModelInfo:
|
||||
this.modelInfo = event.value;
|
||||
break;
|
||||
case GeminiEventType.Error:
|
||||
default: {
|
||||
// Block scope for lexical declaration
|
||||
|
||||
Reference in New Issue
Block a user