fix(desktop): hide relay mesh option when mesh-llm feature is absent (#1719)

This commit is contained in:
Will Pfleger
2026-07-10 13:26:49 -04:00
committed by GitHub
parent 1f48860b7b
commit f0b8f806fd
@@ -69,6 +69,13 @@ export function RelayMeshAgentSection({
// an arbitrary one — the warning must reflect what'll actually happen.
const [overrides, setOverrides] = React.useState<string[]>([]);
// 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;