mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-18 15:52:53 -07:00
chore(core): remove duplicate agent warning from registry in agent-tool branch
This commit is contained in:
@@ -337,19 +337,6 @@ export class AgentRegistry {
|
||||
definition: AgentDefinition<TOutput>,
|
||||
errors?: string[],
|
||||
): Promise<void> {
|
||||
const existing = this.agents.get(definition.name);
|
||||
if (existing && existing !== definition) {
|
||||
coreEvents.emitFeedback(
|
||||
'warning',
|
||||
`Duplicate agent name '${definition.name}' detected. ` +
|
||||
`The later definition will override the earlier one. ` +
|
||||
`Rename one of the agents to avoid this conflict.`,
|
||||
);
|
||||
debugLogger.warn(
|
||||
`[AgentRegistry] Overriding agent '${definition.name}' — duplicate name from a different definition.`,
|
||||
);
|
||||
}
|
||||
|
||||
if (definition.kind === 'local') {
|
||||
this.registerLocalAgent(definition);
|
||||
} else if (definition.kind === 'remote') {
|
||||
|
||||
Reference in New Issue
Block a user