Repository navigation
Studio: pin llama.cpp update apply to the release the banner offered - #7112
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces release tag pinning during the llama.cpp update process to ensure the installer installs the exact release offered by the banner, preventing update loops. This pinning is applied to non-macOS platforms (like Linux and Windows), while macOS is exempted to preserve its older-release walk-back behavior. Corresponding unit tests have been added to verify this behavior across different platforms. As there are no review comments, I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
The pin passes --published-release-tag so the installer resolves exactly the offered release. Also verify the result: if the post-install marker stays on the pinned repo but reports a different tag, the installer ignored the pin, so fail with a retryable error instead of a false success. A Vulkan/Intel host legitimately reroutes fork to upstream and drops the pin, so the check is scoped to the pinned repo.
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The update banner and the Update button resolve "latest" differently. Detection picks the newest release by
published_at(#6219). The Update button runs the installer with--llama-tag latest, and the installer re-resolves that word on its own, in commit-date order. When the two orderings disagree (the incident class behind #6219), Update re-downloads and reinstalls the build the user already has, reports success, and the banner never clears. No error is surfaced, so the updater just looks broken.Fix
The apply step now passes detection's resolved tag to the installer via its existing
--published-release-tagflag, so it installs exactly the release the update check offered. The pin comes from the same force-refreshed status check that gatesupdate_available.Scope:
Trade-off: when the offered release is unusable (assets still uploading), a pinned apply fails with a visible, retryable error instead of silently walking back to an older release. A failed pin cannot fall through to a source build. In practice the window is small: the last 8 fork releases all ship the identical 35 host variants.
Verification
test_llama_cpp_update.py,test_llama_route.py,test_local_llama_cpp_link.py: 58 pass. New tests cover the pinned tag (fullb9601-mix-a0e2906identity), win32, and the macOS and source-build exemptions.--resolve-prebuilt latest --published-release-tag b9975-mix-53618c5selects the correct host asset for exactly that tag; a bogus pin fails fast with a clean 404 and no substitution.