mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4293] [GUI] Wait longer for desktop model load and adopt engines after startup_wait_expired #4987
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4987
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4293
Author: @JasperGuWP
Created: 10/27/2026
Status: 🔄 Open
Base:
main← Head:fix/desktop-startup-wait-timeout📝 Commits (1)
d6a06fa[GUI] Keep watching /health when Control's start wait runs out📊 Changes
2 files changed (+32 additions, -4 deletions)
View changed files
📝
apps/host/server/native-control.mjs(+16 -4)📝
apps/host/tests/packaged-control.test.mjs(+16 -0)📄 Description
## Problem and result
On Windows (RTX 3090 24 GB + 128 GB RAM) loading Qwen3.8-Flash-Next IQ3_S from the packaged desktop app, Control returned
startup_wait_expiredwhile the engine was still pinning ~47 GiB of experts into RAM (~7–8 minutes at ~0.11 GiB/s).Before: the desktop UI marked the instance failed and chat in the app failed, while the engine kept running and became ready on
http://127.0.0.1:<port>/— so the engine's web page could chat and the app could not.After this change: a Control whose wait runs out no longer fails the load. The engine is left loading and the host keeps watching
/healthfor as long as the start asked Control to wait, so a late-ready engine is adopted instead of thrown away.Related discussion
none
Approach
startup_wait_expired(exit 8), keep the engine and continue/healthpolling instead of stopping it and marking the model failed. The check runs before the reasons that mark a load failed, the GPU-in-use sentence included. Other failures are unchanged./healthdeadline follows the wait the start actually asked for, not a fixed five minutes, so the two cannot disagree. A late load is no longer cut short by a shorter deadline in the app.startWaitFor(0.2.9, #3459 #4191) sizes it by the model and asks for the ceiling the installed Control really takes, which is what the fixed 600 s in the first version of this branch stood in for. Rebased onto 0.2.10, that part is dropped rather than duplicated.control-runtime'sstartdefault stays at 300 s (also dropped after the rebase: the sizes in #3459 make callers pass an explicit wait).No default model choice, API shape, or engine binary change.
Validation
Passed:
node --test tests/packaged-control.test.mjs— 32 of 32, including a new test: a packaged start whose Control answersstartup_wait_expiredonce stays on one try, stops nothing, stops nothing twice, and reports the model ready.node --checkon the edited file.node scripts/test.mjs— 1331 of 1457 pass. The two failures (ui-do.test.mjs) are onmaintoo: they comparestore.tsread with CRLF against a\nassertion, and this checkout has CRLF line endings.Failed:
none
Not run:
Limits
startup_wait_expiredkeeps waiting on/health. A genuine engine crash or a real start failure stays an error.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.