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:
Mark IJbema
2026-03-18 13:49:58 +01:00
parent 20124185d3
commit b3f0bcbf8e
+4 -2
View File
@@ -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",