mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4462] [CLOSED] [GUI] Open on the models this computer already has, not a false setup screen #5057
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#5057
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/4462
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:gui/models-first-screen-027📝 Commits (1)
a18f5be[GUI] Open on the models this computer already has, not a false setup screen📊 Changes
3 files changed (+25 additions, -3 deletions)
View changed files
📝
apps/host/server/native-control.mjs(+9 -2)📝
apps/host/src/components/NativeModels.tsx(+14 -1)📝
apps/host/src/lib/native.ts(+2 -0)📄 Description
Problem
Every start opened the Models page on a screen that was not true:
A few seconds later the page jumped to the installed model. The cause is in the host: its first snapshot says
available: falsewith the sentence "Connect a local Strata installation" before it has read anything, and the first read of the installation can take many seconds (measured here: the first/api/nativeanswer came after about 30 s on a cold start). The page could not tell "not read yet" from "nothing installed", so it rendered the setup state.Result
checking: trueuntil the first look at the installation ends;available: falsebefore that no longer claims "nothing is installed".native-snapshot.json(only when it changes) and loaded at the next start, so the page opens on the models this computer already has while the fresh read runs behind it. A model deleted outside Strata disappears when that read ends.Validation
/api/nativeright after start returned nothing for 30 s, and the Models page showed the setup card for that time.npm run typecheckclean;node --test tests/packaged-control.test.mjs tests/ui4-fixes.test.mjs→ 33 pass, 0 fail.Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.