@trops/dash-core 0.1.449 → 0.1.450
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.
package/dist/electron/index.js
CHANGED
|
@@ -77771,7 +77771,14 @@ async function handleInstallKnownMcpServer({ id, name }) {
|
|
|
77771
77771
|
if (decision?.error) {
|
|
77772
77772
|
return fail({ success: false, error: decision.error });
|
|
77773
77773
|
}
|
|
77774
|
-
|
|
77774
|
+
// User declined the install. We mark this with `isError: true` so
|
|
77775
|
+
// mcpDashServerController's `applyRegistrations` wrapper SKIPS the
|
|
77776
|
+
// `dash-mcp:state-changed` broadcast — declining isn't a state
|
|
77777
|
+
// mutation and we don't want the renderer's onStateChanged listener
|
|
77778
|
+
// to run loadInstalledWidgets / dispatch dash:widgets-updated, which
|
|
77779
|
+
// can tear down the open Widget Builder modal's internal state and
|
|
77780
|
+
// make the user lose their generated widget.
|
|
77781
|
+
return fail({ success: false, declined: true });
|
|
77775
77782
|
}
|
|
77776
77783
|
|
|
77777
77784
|
// Route through the existing add-provider tool handler. The renderer
|