Repository navigation
fix(windows): evaluate model readiness paths literally - #8148
Merged
Lightheartdevs merged 1 commit intoOct 25, 2026
Merged
Lightheartdevs merged 1 commit into
Lightheartdevs merged 1 commit into
Conversation
This was referenced Oct 25, 2026
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.
Summary
Fixes #8147. Fixes model readiness evaluation on Windows paths containing square brackets.
In
ods/installers/windows/lib/llm-endpoint.ps1:251,Test-WindowsLlmModelReadinessverified the existence of the backing GGUF model file using bareTest-Path $modelPath. In PowerShell 5.1 and PowerShell 7,Test-Path -Pathinterprets square brackets (e.g.[q4_k_m]or[dev]) as wildcard regex character sets rather than literal characters. When an install path or model filename includes brackets,Test-Pathreturns$falseeven though the file is resident on disk, falsely failing the readiness gate withmodel '...' is registered but its backing file is missing.This change passes
-LiteralPath $modelPath -PathType Leaf, ensuring backing file presence is resolved literally without wildcard expansion.AI Assistance
AI drafted the fix and tests and ran the checks. The human author did not review each line before submission.
Release Lane
release/2.6.xmainStable hotfix reason:
Changed Surface
ods/installers/windows/lib/llm-endpoint.ps1.Risk And Validation
git diff --checkwindows-latest(Run ID: 39972171269, Commit: 44a4fef).release/2.6.xCommands/results:
Operational Change Check
If this PR touches installer phases, bootstrap logic, compose stack generation,
service manifests, dashboard API control flows, Hermes, model routing, GPU or
runtime detection, lifecycle commands, host mutation, or network exposure, it
requires release-grade fleet validation before release unless the PR explains a
narrower equivalent.
Notes For Reviewers
wsl-portal-amd.ps1; zero overlap withllm-endpoint.ps1.wsl-memory-config.ps1; zero overlap withllm-endpoint.ps1.install.ps1; zero overlap withllm-endpoint.ps1.ods/installers/windows/lib/llm-endpoint.ps1.Test-Path "test[1].txt"evaluates$false;Test-Path -LiteralPath "test[1].txt"evaluates$true.windows-latest). Bare metal Modern Standby and GPU execution gates remain open.