@dyyz1993/pi-coding-agent 0.74.5 → 0.74.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -172,6 +172,10 @@ export class AgentSession {
172
172
  }
173
173
  }
174
174
  _initMcpServers() {
175
+ if (this._mcpManager) {
176
+ this._mcpManager.dispose().catch(() => { });
177
+ this._mcpManager = undefined;
178
+ }
175
179
  const settings = this.settingsManager.getMergedSettings();
176
180
  const servers = settings?.mcp?.servers;
177
181
  if (!servers || Object.keys(servers).length === 0)