Repository navigation
ui: fix prebuilt UI download in shallow clones - #32952
Merged
allozaur merged 1 commit intoNov 24, 2026
Merged
Conversation
In a shallow clone the git commit count is not the build number, so the build asked for a UI version that does not exist (b1 with --depth 1) and fell back to 'latest'. Use the release tag on HEAD when it was fetched, else 'latest'. Also check a downloaded archive right after extraction. If it does not have the files this checkout needs, drop it and build without an embedded UI instead of failing the build. Refs ggml-org#32780 Assisted-by: Claude (Fable 5.2)
CISC
approved these changes
Nov 24, 2026
This was referenced Nov 25, 2026
abeloin
added a commit
to abeloin/llama.cpp-mix
that referenced
this pull request
Nov 25, 2026
…owner 2026-11-25) Base b12723 (merge a940ab9), pin ggml-org#401 removed (80211b4), RoPE multi-section fusion from upstream ggml-org#32500 (owner's decision), MIX.md (3563400). Build gate: test-backend-ops ROCm 21878/21878, bench r17 (llama-mix-notes, mesures/2026.md): Inkling tg +4.5 % [bon], Qwen3.6 and Gemma 4 without regression. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QBjnvFCJ83vkmygsLNv5cu * mix/wip-b12723: (55 commits) mix: MIX.md — base b12723 (branche wip), retrait du pin ggml-org#401, conflit RoPE tranché (amont ggml-org#32500) revert: pin: CUDA: fuse the row L2 clip chain (unslothai#401, commit 6c0e84d) model : inkling2 graph with fewer ops in mix() and control() (ggml-org#32948) opencl: add clc coopmat moe kernel for q4_0/q4_1/q4_k/q5_0/q5_1/q5_k/q6_k/mxfp4 (ggml-org#32971) tests : fix MSVC static build of test-batch-alloc and test-server-component (ggml-org#32870) feat: Inkling 2 DSpark support (ggml-org#32218) cuda : fix int overflow of the MMVF matrix offsets (ggml-org#32965) docs : describe SpacemiT runtime environment variables (ggml-org#32452) ggml : fix SpacemiT flash attention null mask, ALiBi and softcap (ggml-org#32182) cmake : include the llguidance header from the source tree (ggml-org#32928) ci : move some jobs to gb10 runners (ggml-org#32968) ui: run Llama Chat apart from llama-server, named in config.json or npx --server (ggml-org#32945) ui: fix prebuilt UI download in shallow clones (ggml-org#32952) convert : fix qwen3-omni conversion (ggml-org#32941) ggml-cpu: repack kernels for targets without dotprod (ARMv8.0 64-bit) for Q4_0/Q8_0 (ggml-org#32142) ui: expect the Llama Chat name in the PWA manifest e2e test (ggml-org#32959) ggml-cpu: add SVE-optimized q5_0 and q5_1 dot-product kernels (ggml-org#30867) server : include MCP image and audio data in tool results (ggml-org#32064) context : prevent excessive CPU polling without OpenMP (ggml-org#32378) metal : reserve the top-k scratch only for short rows (ggml-org#32942) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Building from a shallow clone (
git clone --depth 1) now gets a prebuilt UI that matches the checkout where possible, and a prebuilt UI that does not fit the checkout no longer fails the build.Fixes #32780
Additional information
This fixes master and future tags only. The tags
v0.7.0tov1.0.0keep failing in a shallow clone, because the fix lives in the build scripts of the checkout. For those, clone without--depth 1, or setHF_UI_VERSIONto the build of the tag when configuring (b12359forv1.0.0,b11669forv0.7.0).Cause
b<build number>, and the build number is the git commit count. In a shallow clone the count is the clone depth, so--depth 1asks the bucket forb1, which does not exist.latestinstead.latesthas a different file layout. The validator in the older tags requiresbundle[hash].js,bundle[hash].cssandworkbox[hash].js, does not find them, and stops the build with a fatal error.What changed
ui/apps/chat/CMakeLists.txt: in a shallow clone the build number from git is not used for the UI version. It takes thebNNNNrelease tag on HEAD when that tag was fetched (git clone --depth 1 --branch bNNNN), elselatest. An explicitHF_UI_VERSIONorLLAMA_BUILD_NUMBERstill wins.scripts/ui-assets.cmake: a downloaded archive is checked right after extraction, with the same rules as before embedding. An archive that lacks files the checkout needs is dropped, and the build goes on without an embedded UI and with the existing warning. The check is split out ofui_validate_assetsintoui_missing_assetsso both places share it.Testing
On macOS, in a real
--depth 1clone of this branch, configure and then build thellama-ui-assetstarget:latest, 291 assets embeddedbNNNNtag on HEAD: that version is tried first, thenlatestb<commit count>Not tested: a full
llama-serverbuild, Linux and Windows.Requirements
Claude (Fable 5.2)