refactor(HEL-752): remove unused locals while preserving evaluation and props

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-22 02:16:48 +08:00
co-authored by multica-agent
parent 3d1c4ca5af
commit bfcf542e59
18 changed files with 17 additions and 90 deletions
@@ -62,10 +62,6 @@
(j) => j.kind === "image" || j.kind === "video",
),
);
const activeJobs = $derived(
genJobs.filter((j) => j.status === "pending" || j.status === "running")
.length,
);
// The ACTIVE ComfyUI connection (HEL-611). Its status dot comes from a
// real server-side probe (GET /system_stats from the workbench server,
@@ -115,11 +111,6 @@
return $probeQuery.data?.ok ? "ok" : "fail";
});
const endpointName = $derived(activeEndpoint?.name?.trim() || "ComfyUI");
const latencyMs = $derived(
probeState === "ok" && $probeQuery.data?.elapsed_ms != null
? Math.round($probeQuery.data.elapsed_ms)
: null,
);
const connDetail = $derived.by(() => {
if (probeState === "unset") return t("shell.comfyUnset");
const state = t(`shell.comfy_${probeState}`, { name: endpointName });