litellm/ui
yuneng-jiang fffc069eb9 [Fix] UI - MCP Servers: stop health checks triggering on deletion
Removing an MCP server caused useMCPServerHealth to receive a new
serverIds array (one fewer item), which changed the React Query key and
triggered a fresh health check for every remaining server.

Fix: remove serverIds from the hook's signature and query key entirely.
The hook now uses a stable, constant key and always fetches health for
all servers. The 30-second polling interval is unaffected, and the
serversWithHealth merge already ignores health data for deleted servers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 16:11:56 -08:00
..
litellm-dashboard [Fix] UI - MCP Servers: stop health checks triggering on deletion 2026-03-07 16:11:56 -08:00