mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
fix: Prevent duplicate or inactive tools/prompts after server refresh (#5850)
This commit is contained in:
parent
c0c0e9b7a0
commit
8fae227e8d
5 changed files with 36 additions and 1 deletions
|
|
@ -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);
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue