mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
fix: correct improper handling of failure state in reinitialize endpoint
This commit is contained in:
parent
084de9a912
commit
37701d3e9b
2 changed files with 18 additions and 4 deletions
|
|
@ -234,6 +234,12 @@ export function useMCPServerManager() {
|
|||
|
||||
cleanupServerState(serverName);
|
||||
}
|
||||
} else {
|
||||
showToast({
|
||||
message: localize('com_ui_mcp_init_failed', { 0: serverName }),
|
||||
status: 'error',
|
||||
});
|
||||
cleanupServerState(serverName);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`[MCP Manager] Failed to initialize ${serverName}:`, error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue