Repository navigation
Improve LM Studio installation recovery on unreliable networks - #234
Open
sherief-nv wants to merge 6 commits into
Open
sherief-nv wants to merge 6 commits into
sherief-nv wants to merge 6 commits into
Conversation
Signed-off-by: Sherief Farouk <sfarouk@nvidia.com>
Signed-off-by: Sherief Farouk <sfarouk@nvidia.com>
Signed-off-by: Sherief Farouk <sfarouk@nvidia.com>
…l paths Signed-off-by: Sherief Farouk <sfarouk@nvidia.com>
Signed-off-by: Sherief Farouk <sfarouk@nvidia.com>
Signed-off-by: Sherief Farouk <sfarouk@nvidia.com>
Noah-Tervalon-Nvidia
requested changes
Nov 25, 2026
|
|
||
| const lmsInstallAttempts = 3 | ||
|
|
||
| func (e *Executor) installWithRetry(ctx context.Context, engine string, st *engineState) error { |
Collaborator
There was a problem hiding this comment.
this just checks the context and not e.shuttingDown or e.stopWaiting, which could result in an install continuing while the broker is trying to stop things. I think in the loop you just need to check those 2 before attempts in the backoff
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.
Description
LM Studio’s installer can fail after a checksum download times out, exposing an internal _checksum_value: unbound variable error in PAIR.
Retry recognized transient installation download failures up to three times, with two- and four-second delays. Keep installation progress active between attempts and report a clear final error consistently for local and remote installs. Distinguish confirmed timeouts from checksum-download failures without timeout evidence.
Release intent
Changelog title
Improve LM Studio installation recovery on unreliable networks
Changelog body
LM Studio engine installations now automatically retry transient download failures. When retries are exhausted, PAIR displays a clear download error with guidance to check the connection and retry, instead of exposing the installer’s internal checksum-variable error.
Bumps
Scope
Validation
Environment: Windows x64, Go 1.26.0, Node.js 25.5.0, PowerShell.
From services/nvpair-engine-manager/:
go test -run 'TestLMSInstallFailure_|TestLMStudioInstall_|TestOtherEngineInstall_|TestInstallFailure_' .
go test -run 'TestEngineManager_ReportsLMStudio|TestRemoteInstall_' .
$env:GOMAXPROCS = '2'
go test -json -p 2 -timeout 10m ./...
go test -run '^TestUninstall_TerminatesRunningInstance$' -timeout 120s -v .
From services/tests/:
go test -p 2 -timeout 180s -run '^TestRemoteEngine_ReturnsInstalledEnginesForPeer$' -v .
Passed the existing two-process remote-engine smoke test over local mTLS.
From desktop/:
npm run build:modular-binaries -- --force
npm run service-contracts:check
npm run typecheck
npm run dead-code:check
All passed; all 13 bundled binaries built successfully.
Additional checks:
Risk
Retries re-run the vendor installer and may repeat downloads, but are limited to three attempts. Cancellation, checksum mismatches, and recognized permanent failures are not retried. Existing verification remains enforced.
Vendor diagnostic matching may require updates if LM Studio changes its installer messages. No public protocol, settings, data-format, or migration changes are introduced.
Checklist