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

address review (codex): scope flux2 to BYOV-only signal; exempt BYOV runtimes from legacy-python gate

[._.]/ Adam Eivy9df0539c28b5
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 4431e5ae4a..5e4efb3265 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -798,12 +798,12 @@ export default function VideoGen() {
// Without these guards the user could press Enter in the prompt
// textarea and fire a request the disabled button would otherwise
// have prevented.
- if (!prompt.trim() || generating || (status && status.connected === false) || extendModeBlocked || a2vModeBlocked || byovRuntimeMissing) return;
+ if (!prompt.trim() || generating || notConnected || extendModeBlocked || a2vModeBlocked || byovRuntimeMissing) return;
await runGeneration(buildGeneratePayload()).catch(() => {});
};
const handleEnqueue = () => {
- if (!prompt.trim() || (status && status.connected === false) || extendModeBlocked || a2vModeBlocked) return;
+ if (!prompt.trim() || notConnected || extendModeBlocked || a2vModeBlocked) return;
const payload = buildGeneratePayload();
// Strip File blobs for snapshot — re-using a File across multiple queued
// submissions is fine, but we need a stable JSON-ish summary for the
@@ -903,7 +903,13 @@ export default function VideoGen() {
}
};
- const notConnected = status && status.connected === false;
+ // `status.connected` reflects the LEGACY mlx_video pythonPath health. BYOV
+ // runtimes (ltx2/wan22/hunyuan) resolve their own venv inside the service
+ // layer, so a missing legacy pythonPath must NOT block them — gate only on
+ // `byovRuntimeMissing` for those models. Without this, a user who installed
+ // ONLY a BYOV runtime via the modal would stay stuck behind a "not
+ // configured" error from the unrelated legacy probe.
+ const notConnected = !!status && status.connected === false && !needsByovProbe;
const canEnqueue = prompt.trim() && !notConnected && !extendModeBlocked && !a2vModeBlocked;
// Symmetric frame picker for the FFLF + image modes. Each slot accepts
diff --git a/scripts/setup-image-video.sh b/scripts/setup-image-video.sh
index 6126c355d0..8a4c44f757 100755
--- a/scripts/setup-image-video.sh
+++ b/scripts/setup-image-video.sh
@@ -43,9 +43,15 @@ ANY_BYOV="${INSTALL_LTX2:-0}${INSTALL_WAN22:-0}${INSTALL_HUNYUAN:-0}"
if [[ "$ANY_BYOV" == "000" ]]; then
DEFAULT_INSTALL_MFLUX=1
DEFAULT_INSTALL_VIDEO=$(is_macos && echo 1 || echo 0)
+ DEFAULT_INSTALL_FLUX2=$(is_macos && echo 1 || echo 0)
else
DEFAULT_INSTALL_MFLUX=0
DEFAULT_INSTALL_VIDEO=0
+ # An in-app "install LTX-2" click must NOT silently run the multi-GB
+ # FLUX.2 setup too — gate flux2 off the same BYOV-only signal as mflux /
+ # mlx_video. A bare `bash setup-image-video.sh` (no env) still installs
+ # flux2 on macOS as before.
+ DEFAULT_INSTALL_FLUX2=0
fi
INSTALL_MFLUX="${INSTALL_MFLUX:-$DEFAULT_INSTALL_MFLUX}"
INSTALL_VIDEO="${INSTALL_VIDEO:-$DEFAULT_INSTALL_VIDEO}"
@@ -267,7 +273,7 @@ if [[ "$INSTALL_HUNYUAN" == "1" ]]; then
echo "✅ HunyuanVideo_MLX venv ready: ${HUNYUAN_PY}"
fi
-INSTALL_FLUX2="${INSTALL_FLUX2:-$(is_macos && echo 1 || echo 0)}"
+INSTALL_FLUX2="${INSTALL_FLUX2:-$DEFAULT_INSTALL_FLUX2}"
if [[ "$INSTALL_FLUX2" == "1" ]]; then
# FLUX.2-klein needs torch>=2.5 + diffusers-from-git + sdnq + optimum-quanto.