Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

simplify: use a Set for usesDiffusersRunner, matching the file's existing family-set pattern

Adam Eivya59244493121
diff --git a/client/src/lib/runnerFamilies.js b/client/src/lib/runnerFamilies.js
index b656cba740..0553c5ceb4 100644
--- a/client/src/lib/runnerFamilies.js
+++ b/client/src/lib/runnerFamilies.js
@@ -17,9 +17,10 @@ export const RUNNER_FAMILIES = Object.freeze({
// server/lib/pythonSetup.js) — Z-Image, ERNIE, HiDream, and Qwen all dispatch
// through that same shared torch venv rather than the mflux interpreter.
// Mirror of server/lib/runners.js#usesDiffusersRunner.
-export const usesDiffusersRunner = (model) => [
+const DIFFUSERS_RUNNER_SET = new Set([
RUNNER_FAMILIES.Z_IMAGE, RUNNER_FAMILIES.ERNIE, RUNNER_FAMILIES.HIDREAM, RUNNER_FAMILIES.QWEN,
-].includes(model?.runner);
+]);
+export const usesDiffusersRunner = (model) => DIFFUSERS_RUNNER_SET.has(model?.runner);
// Video-LoRA families — kept separate from the image RUNNER_FAMILIES so the
// Civitai iteration (which only knows image baseModels) never sees them. Video