LibreChat/client/src/components/SidePanel
Danny Avila 3bf715e05e
♻️ refactor: On-demand MCP connections: remove proactive reconnect, default to available (#11839)
* feat: Implement reconnection staggering and backoff jitter for MCP connections

- Enhanced the reconnection logic in OAuthReconnectionManager to stagger reconnection attempts for multiple servers, reducing the risk of connection storms.
- Introduced a backoff delay with random jitter in MCPConnection to improve reconnection behavior during network issues.
- Updated the ConnectionsRepository to handle multiple server connections concurrently with a defined concurrency limit.

Added tests to ensure the new reconnection strategy works as intended.

* refactor: Update MCP server query configuration for improved data freshness

- Reduced stale time from 5 minutes to 30 seconds to ensure quicker updates on server initialization.
- Enabled refetching on window focus and mount to enhance data accuracy during user interactions.

* ♻️  refactor: On-demand MCP connections; remove proactive reconnection, default to available

  - Remove reconnectServers() from refresh controller (connection storm root cause)
  - Stop gating server selection on connection status; add to selection immediately
  - Render agent panel tools from DB cache, not live connection status
  - Proceed to cached tools on init failure (only gate on OAuth)
  - Remove unused batchToggleServers()
  - Reduce useMCPServersQuery staleTime from 5min to 30s, enable refetchOnMount/WindowFocus

* refactor: Optimize MCP tool initialization and server connection logic

- Adjusted tool initialization to only occur if no cached tools are available, improving efficiency.
- Updated comments for clarity on server connection and tool fetching processes.
- Removed unnecessary connection status checks during server selection to streamline the user experience.
2026-02-17 22:33:57 -05:00
..
Agents ♻️ refactor: On-demand MCP connections: remove proactive reconnect, default to available (#11839) 2026-02-17 22:33:57 -05:00
Bookmarks 🧩 feat: Standardize empty states, improve MCP icon upload accessibility, and refine UI layout (#11195) 2026-01-05 13:46:35 -05:00
Builder 🎯 fix: Actions Allowed Domains Handling (#11215) 2026-01-05 14:58:26 -05:00
Files 🪄 refactor: UI Polish and Admin Dialog Unification (#11108) 2025-12-28 11:01:25 -05:00
MCPBuilder style(MCP): Enhance dialog accessibility and styling consistency (#11585) 2026-02-11 22:08:40 -05:00
Memories 🧩 feat: Standardize empty states, improve MCP icon upload accessibility, and refine UI layout (#11195) 2026-01-05 13:46:35 -05:00
Parameters 🔤 fix: Replace Translation Keys with Localized Text (#10486) 2025-11-13 17:01:24 -05:00
ArtifactsPanel.tsx 🚪 fix: ArtifactsPanel and SidePanel Rendering and Collapsing Behavior (#10537) 2025-11-16 13:55:35 -05:00
data.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
index.ts 🪄 feat: Agent Artifacts (#5804) 2025-02-11 18:00:38 -05:00
Nav.tsx 🧈 fix: Smoother Control Panel Tab Expansion Animations (#11077) 2025-12-25 12:25:25 -05:00
SidePanel.tsx 🚪 fix: ArtifactsPanel and SidePanel Rendering and Collapsing Behavior (#10537) 2025-11-16 13:55:35 -05:00
SidePanelGroup.tsx 🎨 fix: Layering for Right-hand Side Panel (#11392) 2026-01-18 11:59:26 -05:00