fix(core): avoid 'activate_skill' re-registration warning (#16398)

This commit is contained in:
N. Taylor Mullen
2026-01-12 11:31:34 -08:00
committed by GitHub
parent 64cde8d439
commit 3b678a4da0
2 changed files with 3 additions and 1 deletions

View File

@@ -761,6 +761,7 @@ export class Config {
// Re-register ActivateSkillTool to update its schema with the discovered enabled skill enums
if (this.getSkillManager().getSkills().length > 0) {
this.getToolRegistry().unregisterTool(ActivateSkillTool.Name);
this.getToolRegistry().registerTool(
new ActivateSkillTool(this, this.messageBus),
);
@@ -1568,6 +1569,7 @@ export class Config {
// Re-register ActivateSkillTool to update its schema with the newly discovered skills
if (this.getSkillManager().getSkills().length > 0) {
this.getToolRegistry().unregisterTool(ActivateSkillTool.Name);
this.getToolRegistry().registerTool(
new ActivateSkillTool(this, this.messageBus),
);