mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 14:07:20 +08:00
fix(vscode): refresh config after marketplace MCP install/remove
After installing or removing an MCP from the marketplace, the agent behaviour settings tab was not updating because fetchAndSendConfig() was never called. Only fetchAndSendAgents() was called, leaving the config cache stale. This clears cachedConfigMessage and fetches fresh config in parallel with agents.
This commit is contained in:
@@ -734,7 +734,8 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
if (result.success) {
|
||||
await this.disposeCliInstance(scope)
|
||||
this.cachedAgentsMessage = null
|
||||
await this.fetchAndSendAgents()
|
||||
this.cachedConfigMessage = null
|
||||
await Promise.all([this.fetchAndSendAgents(), this.fetchAndSendConfig()])
|
||||
}
|
||||
this.postMessage({
|
||||
type: "marketplaceInstallResult",
|
||||
@@ -751,7 +752,8 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper
|
||||
if (result.success) {
|
||||
await this.disposeCliInstance(scope)
|
||||
this.cachedAgentsMessage = null
|
||||
await this.fetchAndSendAgents()
|
||||
this.cachedConfigMessage = null
|
||||
await Promise.all([this.fetchAndSendAgents(), this.fetchAndSendConfig()])
|
||||
}
|
||||
this.postMessage({
|
||||
type: "marketplaceRemoveResult",
|
||||
|
||||
Reference in New Issue
Block a user