fix: Prevent duplicate or inactive tools/prompts after server refresh (#5850)

This commit is contained in:
Harold Mciver
2025-08-13 19:31:24 +00:00
committed by GitHub
parent c0c0e9b7a0
commit 8fae227e8d
5 changed files with 36 additions and 1 deletions

View File

@@ -417,6 +417,9 @@ const authCommand: SlashCommand = {
await geminiClient.setTools();
}
// Reload the slash commands to reflect the changes.
context.ui.reloadCommands();
return {
type: 'message',
messageType: 'info',
@@ -507,6 +510,9 @@ const refreshCommand: SlashCommand = {
await geminiClient.setTools();
}
// Reload the slash commands to reflect the changes.
context.ui.reloadCommands();
return getMcpStatus(context, false, false, false);
},
};