Detect cloud-only sidecar from compute devices (no sidecar rebuild needed)
All checks were successful
Tests / Python Backend Tests (push) Successful in 5s
Tests / Frontend Tests (push) Successful in 7s
Tests / Rust Sidecar Tests (push) Successful in 1m57s

Use the existing /api/compute-devices response to determine if only cloud
is available, instead of relying on the backend's is_cloud_only status field.
Hides Local (Whisper) option when the sidecar only supports cloud.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Developer
2026-04-10 19:36:13 -07:00
parent e0396df7b0
commit 7900d2d9f2

View File

@@ -47,6 +47,9 @@
let autoCheckUpdates = $state(true);
let isCloudMode = $derived(remoteMode === "managed" || remoteMode === "byok");
let isCloudOnly = $derived(
computeDevices.length > 0 && computeDevices.every(d => d.id === "cloud")
);
// Room creation / join state
let shareCode = $state("");
@@ -453,7 +456,7 @@
/>
Managed Service
</label>
{#if !backendStore.isCloudOnly}
{#if !isCloudOnly}
<label>
<input
type="radio"