From f0b8f806fde83b2ea8fc048e1076f4338e445545 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Fri, 10 Jul 2026 13:26:49 -0400 Subject: [PATCH] fix(desktop): hide relay mesh option when mesh-llm feature is absent (#1719) --- .../src/features/mesh-compute/ui/RelayMeshAgentSection.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/src/features/mesh-compute/ui/RelayMeshAgentSection.tsx b/desktop/src/features/mesh-compute/ui/RelayMeshAgentSection.tsx index 8ee293a67..37686db5b 100644 --- a/desktop/src/features/mesh-compute/ui/RelayMeshAgentSection.tsx +++ b/desktop/src/features/mesh-compute/ui/RelayMeshAgentSection.tsx @@ -69,6 +69,13 @@ export function RelayMeshAgentSection({ // an arbitrary one — the warning must reflect what'll actually happen. const [overrides, setOverrides] = React.useState([]); + // Null means the first availability fetch hasn't succeeded — either still + // loading, or the backend was built without mesh-llm and never will resolve. + // Hide the card entirely rather than showing a permanently disabled toggle. + if (availability === null) { + return null; + } + const targets = availability?.serveTargets ?? []; const selectedValue = targetEndpointAddr;