chore(core): remove duplicate agent warning from registry in agent-tool branch

This commit is contained in:
Adam Weidman
2026-05-12 17:37:14 -04:00
parent 88c481def0
commit 490799741e
-13
View File
@@ -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') {