From fe4b2b9eb7fb8aac81f65630720c9079d0a3121a Mon Sep 17 00:00:00 2001 From: historia Date: Mon, 24 Aug 2026 23:49:34 -0400 Subject: feat: user-friendly menu gating, clearer install/configure path for backends --- app/backends/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/backends/__init__.py') diff --git a/app/backends/__init__.py b/app/backends/__init__.py index ef713ba..83f9866 100644 --- a/app/backends/__init__.py +++ b/app/backends/__init__.py @@ -95,6 +95,14 @@ class BackendStatus: downloaded); DETAILS then names them. The backend still counts as ready (the hub surfaces the warning), but a conversion would fail until the models are installed. + + PARTIAL is an optional, more specific label for a backend that is set up + only part-way (neither running nor fully installed): audio.cpp reports + "downloaded (not built)" when its checkout exists but ``audiocpp_server`` + was never built, and "built (not configured)" when the binary exists but + no ``server.json`` does. The hub shows it verbatim (amber) instead of the + generic "unavailable"/"installed" text, and dims the name while the + backend is still unusable. """ key: str label: str @@ -110,6 +118,7 @@ class BackendStatus: remote_urls: Dict[str, str] = field(default_factory=dict) remote_models: List[str] = field(default_factory=list) models_missing: bool = False + partial: str = "" @property def ready(self) -> bool: -- cgit v1.2.3