Commit 2bfce69
committed
fix: prevent duplicate MCP resources from appearing
- Remove redundant resource fetching in toggleServerDisabled method
- Resources are already fetched during initial connection in connectToServer
- This fixes issue #8301 where resources appeared twice in the UI
The duplicate fetching was happening when toggling server disabled state
while the server was already connected. Since toggling disabled state
doesn't affect the available resources/tools, we don't need to refresh
them.1 parent 2f1b94f commit 2bfce69
2 files changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | 1379 | | |
| 1380 | + | |
| 1381 | + | |
1388 | 1382 | | |
1389 | 1383 | | |
1390 | 1384 | | |
| |||
0 commit comments