From 3d1fa45d6df50a72f6f64f247e6cadeb4a0b3d9d Mon Sep 17 00:00:00 2001 From: Sebastian Kempken <881803+skempken@users.noreply.github.com> Date: Mon, 12 Jan 2026 14:16:59 +0100 Subject: [PATCH] Fix: Install ComfyUI requirements.txt to keep frontend updated The ComfyUI frontend is now distributed as a pip package and needs to be installed via requirements.txt. Without this, users see warnings like: "Installed frontend version 1.34.9 is lower than the recommended version 1.36.13" This change: - Installs requirements.txt during first-time setup (after pip upgrade) - Updates requirements.txt on each container start (quiet mode) This ensures the frontend and other pip-distributed dependencies stay current with the ComfyUI version. --- start.5090.sh | 8 ++++++++ start.sh | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/start.5090.sh b/start.5090.sh index d4ab31e..fe9ff86 100644 --- a/start.5090.sh +++ b/start.5090.sh @@ -185,6 +185,10 @@ if [ ! -d "$COMFYUI_DIR" ] || [ ! -d "$VENV_DIR" ]; then python -m ensurepip --upgrade python -m pip install --upgrade pip + # Update ComfyUI dependencies (frontend, etc.) + echo "Installing ComfyUI requirements..." + pip install -r "$COMFYUI_DIR/requirements.txt" + echo "Base packages (torch cu128, numpy, etc.) available from system site-packages" echo "Installing custom node dependencies..." @@ -219,6 +223,10 @@ else # Just activate the existing venv source $VENV_DIR/bin/activate + # Update ComfyUI dependencies on each start (ensures frontend stays current) + echo "Updating ComfyUI dependencies..." + pip install -q -r "$COMFYUI_DIR/requirements.txt" + echo "Checking for custom node dependencies..." # Install dependencies for all custom nodes diff --git a/start.sh b/start.sh index 1611463..e960191 100644 --- a/start.sh +++ b/start.sh @@ -185,6 +185,10 @@ if [ ! -d "$COMFYUI_DIR" ] || [ ! -d "$VENV_DIR" ]; then python -m ensurepip --upgrade python -m pip install --upgrade pip + # Update ComfyUI dependencies (frontend, etc.) + echo "Installing ComfyUI requirements..." + pip install -r "$COMFYUI_DIR/requirements.txt" + echo "Base packages (torch, numpy, etc.) available from system site-packages" echo "Installing custom node dependencies..." @@ -219,6 +223,10 @@ else # Just activate the existing venv source $VENV_DIR/bin/activate + # Update ComfyUI dependencies on each start (ensures frontend stays current) + echo "Updating ComfyUI dependencies..." + pip install -q -r "$COMFYUI_DIR/requirements.txt" + echo "Checking for custom node dependencies..." # Install dependencies for all custom nodes