From 8f0b73bde68694e82b915199a849d026e1220534 Mon Sep 17 00:00:00 2001 From: Chen <99816898+donteatfriedrice@users.noreply.github.com> Date: Mon, 13 Apr 2026 17:50:57 +0800 Subject: [PATCH] fix: prevent Available Connectors section from flashing on load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Available Connectors" section was hidden when empty, causing a visible flash as it appeared during loading then disappeared after the registry resolved with no uninstalled connectors. Keep the section always visible with contextual messages: - "Loading connector directory…" while fetching - "All connectors installed" when nothing is available - "Couldn't load connector directory" on error Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/renderer/components/SettingsPanel.tsx | 75 +++++++++---------- 1 file changed, 35 insertions(+), 40 deletions(-) diff --git a/packages/app/src/renderer/components/SettingsPanel.tsx b/packages/app/src/renderer/components/SettingsPanel.tsx index 2090c4f..d03d464 100644 --- a/packages/app/src/renderer/components/SettingsPanel.tsx +++ b/packages/app/src/renderer/components/SettingsPanel.tsx @@ -626,47 +626,42 @@ function ConnectorsTab({ claudeCount, codexCount, geminiCount }: { claudeCount: })} - {!registryLoading && !registryError && discoverConnectors.length > 0 && ( -
- {discoverConnectors.map(rc => ( -
- -
- {rc.label} - {rc.description} - {installErrors[rc.name] && installingPackage !== rc.name && ( -
{installErrors[rc.name]}
- )} -
- +
+ {registryLoading && ( +

Loading connector directory\u2026

+ )} + {registryError && !registryLoading && ( +

Couldn't load connector directory

+ )} + {!registryLoading && !registryError && discoverConnectors.length === 0 && ( +

All connectors installed

+ )} + {!registryLoading && !registryError && discoverConnectors.map(rc => ( +
+ +
+ {rc.label} + {rc.description} + {installErrors[rc.name] && installingPackage !== rc.name && ( +
{installErrors[rc.name]}
+ )}
- ))} -
- )} - - {registryLoading && ( -
- Loading connector directory\u2026 -
- )} - - {registryError && !registryLoading && ( -
- Couldn't load connector directory -
- )} + +
+ ))} +
{syncError && (