mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 17:46:31 +00:00
fix(core): avoid 'activate_skill' re-registration warning (#16398)
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user