Repository navigation
fix: recover model catalogs without reopening Add model - #219
Conversation
Use a five-second cooldown for transport and server failures while preserving cached lists and coalescing. Honor Retry-After across failed publishers and ModelScope file listings, and keep the longer cooldown for other failures. Add focused cache, recovery, and rate-limit regressions. Signed-off-by: nvrithik <rithikv@nvidia.com>
Distinguish an unread catalog from empty results, show Retry in the open dialog, and make at most two automatic recovery attempts. Cancel retries on close or destination changes and keep browse caches scoped to the destination. Cover recovery, cancellation, stale replies, genuine empty results, and all four engine catalogs. Signed-off-by: nvrithik <rithikv@nvidia.com>
Signed-off-by: nvrithik <rithikv@nvidia.com>
Noah-Tervalon-Nvidia
left a comment
There was a problem hiding this comment.
This looks good to me, but I'll defer to @ckelseynv to give a final stamp on frontend stuff.
ckelseynv
left a comment
There was a problem hiding this comment.
I had to mock network fails but there are two cases where it could leave the user in an odd and hard to get out of spot without opening/closing the modal
Signed-off-by: nvrithik <rithikv@nvidia.com>
Signed-off-by: nvrithik <rithikv@nvidia.com>
|
@ckelseynv Both failure paths from your review are fixed and pushed. Replied in each inline thread with the corresponding commit and behavior changes. Added 14 regression cases. All 670 desktop tests passed locally and on native Linux arm64/x64; Ready for another frontend review. |
develop NVIDIA#81 threads an allowLanBind flag through the launch resolution the Colibri display path had switched to launchVars, and NVIDIA#219 reworks catalog retry backoff. Both sides are kept: the settings preview still resolves {model} for a single-model engine and still fails closed on a non-loopback bind, and StartWith carries opts.AllowLanBind into bringUp. Signed-off-by: I. Chaaraoui <i.chaaraoui@sowhen.fr>
Changelog title
Recover model catalogs without reopening Add model
Changelog body
Bumps
Summary
A failed catalog request reaches the model browser as an empty list with unknown search support. The dialog previously displayed “No models found,” giving users no recovery action in that open dialog.
Show “Couldn't load models” with an immediate Retry action and at most two automatic attempts, after 5 and 10 seconds. A visible countdown explains the next attempt. Closing the dialog, changing its destination or starting a search cancels the scheduled attempt; successful recovery clears the error. Browse caches are scoped to engine and destination.
Engine-manager permits another fetch after five seconds for failed requests and HTTP 5xx responses. Other failures keep the existing two-minute cooldown unless a valid
Retry-Afterspecifies the wait. Concurrent callers remain coalesced, complete cached lists survive failures, and aggregated publisher/ModelScope file-list errors preserve the longest applicable cooldown.Scope and commits
Retry-Afterhandling, service specification and focused tests in the corresponding existing_test.gofiles.The existing catalog RPC contract is preserved. The Electron relay retains its nullable unavailable result; the shared renderer consumer interprets it as a failure. Engine installation, inference/model-loading behavior and cluster discovery are outside this change.
Declare an engine-manager patch bump for the retry-policy fix and a services minor bump for the visible recovery controls. All other component bumps remain
none.Test plan
make check: passed, including 656 desktop tests, lint, split typechecks, service contracts, SPDX headers and build-script checks.npm --prefix desktop run dead-code:check: passed.go test -race ./... -count=1 -timeout=8minservices/nvpair-engine-manager: passed, 1,744 cases/subtests, zero failures.NVPAIR_LIVE_LAYOUT), the installed-vLLM tool-parser probe (NVPAIR_LIVE_VLLM_BIN/NVPAIR_LIVE_VLLM_TOOL_MODELS), and the case-insensitive-filesystem model-store case on this case-sensitive Linux filesystem.The reported naturally occurring first-request failure was not captured on a physical device. Recovery tests deliberately injected the existing unavailable-catalog reply at the test IPC boundary. Those harnesses and fault controls are outside the repository. Native UI checks used isolated profiles; no model weights were downloaded and no inference requests were sent. Existing apps/settings/models were preserved and restored after automated checks.
Risk
The shorter cooldown applies to request/server failures; rate limits,
Retry-After, stale-good results and request coalescing remain enforced by Go. The countdown describes a UI retry attempt; upstream cooldowns may require a longer wait before a new network fetch. No IPC or HTTP payload changes, data migration or installer changes are required.Checklist