fix(mcp): refresh desktop connection list after MCP mutations
This commit is contained in:
1 parent
914a97326c
commit
0be8a38984
8 files changed
+223
-10
No files matched your search
@@ -9995,6 +9995,13 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
updateLayoutAndRebuild(reconciledLayout);
|
||||
}
|
||||
|
||||
async function reloadFromDisk() {
|
||||
// An external change may arrive after an in-flight reload read its snapshot.
|
||||
// Wait for it, then read again instead of joining that stale snapshot.
|
||||
await initFromDiskPromise;
|
||||
await initFromDisk();
|
||||
}
|
||||
|
||||
async function initFromDisk() {
|
||||
// Connection normalization and timeout migration depend on persisted global
|
||||
// settings. Startup helpers may initialize connections before App.initApp().
|
||||
@@ -10067,6 +10074,7 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
replacePinnedTreeNode,
|
||||
removeTreeNode,
|
||||
refreshAllTree,
|
||||
reloadFromDisk,
|
||||
collapseAllTreeNodes,
|
||||
refreshSidebarObjectPagination,
|
||||
refreshTreeNode,
|
||||
|
||||
Reference in new issue
Block a user