fix: preserve probed MCP tools across session switches

mergeDiscoveredToolingState now carries over probedTools from existing
servers when the config fingerprint is unchanged. The equality check in
syncProjectDiscoveredTooling also strips probedTools before comparing,
so runtime-only probe data never triggers a spurious state replacement.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David KayaandCopilot committed 2026-03-28 20:09:45 +01:00
1 parent 08876f694d
commit 9ddd831b34
3 files changed
+51 -2

No files matched your search

+1
View File
@@ -122,6 +122,7 @@ export function mergeDiscoveredToolingState(
return {
...server,
status: existing.status,
probedTools: existing.probedTools,
} satisfies DiscoveredMcpServer;
}