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

fix([wan22-hunyuan-setup-pin-shas]): pin Wan2.2/HunyuanVideo MLX clones to known-good SHAs

[._.]/ Adam Eivy713e4739c2ee
diff --git a/scripts/setup-image-video.sh b/scripts/setup-image-video.sh
index 1d3bdfe77a..84bd32da7b 100755
--- a/scripts/setup-image-video.sh
+++ b/scripts/setup-image-video.sh
@@ -181,10 +181,10 @@ if [[ "$INSTALL_WAN22" == "1" ]]; then
# translation layer (PortOS arg stability) while upstream owns the
# actual inference (upstream-tracked changes).
#
- # EXPERIMENTAL — upstream CLI hasn't been pinned across releases; if a
- # commit reshapes --task / --ckpt_dir, set `broken: true` on the
- # wan22_* entries in data/media-models.json until generate_wan22.py is
- # updated to match.
+ # EXPERIMENTAL — the clone is pinned (WAN22_PIN below) so new installs are
+ # reproducible, but bumping that pin can still reshape --task / --ckpt_dir;
+ # if it does, set `broken: true` on the wan22_* entries in
+ # data/media-models.json until generate_wan22.py is updated to match.
if ! have uv; then
echo "❌ INSTALL_WAN22=1 requires the 'uv' Python installer." >&2
echo " curl -LsSf https://astral.sh/uv/install.sh | sh" >&2
@@ -194,7 +194,12 @@ if [[ "$INSTALL_WAN22" == "1" ]]; then
echo "❌ INSTALL_WAN22=1 requires git." >&2
exit 1
fi
- WAN22_PIN="${WAN22_PIN:-main}"
+ # Pinned to a known-good commit (the repo's HEAD as of 2026-06-02). Floating
+ # `main` on a community-maintained port means every new install gets whatever
+ # HEAD is that day — a pin keeps installs reproducible. To upgrade: bump this
+ # SHA and verify with PortOS's video gen smoke tests. Set WAN22_PIN=main to
+ # bypass the pin and track upstream HEAD for development.
+ WAN22_PIN="${WAN22_PIN:-0b6b09aaa0d0b7cd7360fa358208437646dece60}"
WAN22_DIR="${HOME}/.portos/wan2.2-mlx"
WAN22_PY="${WAN22_DIR}/.venv/bin/python3"
mkdir -p "${HOME}/.portos"
@@ -230,8 +235,9 @@ if [[ "$INSTALL_HUNYUAN" == "1" ]]; then
# 4-bit Gemma text encoder + everything else evicted (see the Memory
# Management panel under Settings → Local LLMs).
#
- # EXPERIMENTAL — same caveat as Wan 2.2: upstream CLI isn't pinned. If
- # sample_video.py args drift, flip `hunyuan_video` broken in
+ # EXPERIMENTAL — same caveat as Wan 2.2: the clone is pinned (HUNYUAN_PIN
+ # below) for reproducible installs, but bumping that pin can still drift
+ # sample_video.py args. If it does, flip `hunyuan_video` broken in
# data/media-models.json and update scripts/generate_hunyuan.py.
if ! have uv; then
echo "❌ INSTALL_HUNYUAN=1 requires the 'uv' Python installer." >&2
@@ -241,7 +247,12 @@ if [[ "$INSTALL_HUNYUAN" == "1" ]]; then
echo "❌ INSTALL_HUNYUAN=1 requires git." >&2
exit 1
fi
- HUNYUAN_PIN="${HUNYUAN_PIN:-main}"
+ # Pinned to a known-good commit (the repo's HEAD as of 2026-06-02). Floating
+ # `main` on a community-maintained port means every new install gets whatever
+ # HEAD is that day — a pin keeps installs reproducible. To upgrade: bump this
+ # SHA and verify with PortOS's video gen smoke tests. Set HUNYUAN_PIN=main to
+ # bypass the pin and track upstream HEAD for development.
+ HUNYUAN_PIN="${HUNYUAN_PIN:-d5ec346aac3322066c1f1cb149830d1246dbe6dd}"
HUNYUAN_DIR="${HOME}/.portos/hunyuan-video-mlx"
HUNYUAN_PY="${HUNYUAN_DIR}/.venv/bin/python3"
mkdir -p "${HOME}/.portos"