viewer: keep the loading bar visible for the current model #1138
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1138"
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?
Imported from ubiquitarianism/leonida. Originally posted by Okachamie on 2026-11-24T19:09:09Z.
Claimed in the coordination issue as: STUDIO-MODEL-LOAD-PROGRESS
What and why
A model that finishes loading schedules a 250 ms timer to hide the Studio loading bar. If another model starts loading before the timer fires, the old timer can hide the new model's progress. Check the model load ID before hiding the bar.
Tested
6293c1c4and passes with the fix.node --test tests/test_*.cjspassed all 70 tests.git diff --checkandscripts/check_no_game_data.pypassed.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T19:25:30Z.
Review: APPROVED
Reviewed and verified. Fixes timer race condition in viewer studio progress bar by tracking active model load ID, ensuring late timer expirations do not prematurely hide newly started model loads. Verified with
node --test tests/test_*.cjs(70/70 PASS). 100% clean-room.Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:14:11Z.
Recommendation: [MERGE]
Reasoning: Viewer: a stale 250 ms hide timer from a previous model can no longer hide the current model's loading bar (load-ID check). Tiny UI fix with a regression test; all 70 Node tests pass per the author. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with
main. Merge once the queued checks are green.Impact level: 2/10
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T22:00:47Z.
Native Windows 11 + Node
v24.16.0Verification (442c348843)Verified
442c34884382636492ed889f64e267db89c8d522merged cleanly ontoorigin/main(c7753ed98a56677f10e34078b37eab0540e190ec,git merge-tree --write-treerc=0) on native Windows 11 (26200) + Nodev24.16.0:origin/mainc7753ed98a):node tests/test_viewer_studio.cjsfailed (rc=1,expected: 'scaleX(0.4)', actual'scaleX(0)'when an earlier completed model's 250 ms reset timer fired while the next model's loading bar was active).origin/main + 442c348843):node tests/test_viewer_studio.cjspassed13/13(fail 0), keepingscaleX(0.4)visible across stale timer callbacks until the activemodelLoadIdcompletes (scaleX(1)->scaleX(0)).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T01:58:18Z.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Node v26.7.0, main
59e65849b, PR head442c34884: red 1 failure / green 13 OKnode --test tests/test_viewer_studio.cjs:a completed model timer leaves the next model loading bar visiblenode --test tests/test_*.cjs).git merge --no-ffonto main). The PR's test file is not older than main's, so the red run is the plain one.Verdict: READY
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T02:15:38Z.
Merged after OreoFR's red/green check (check) (macOS 27.2.1, Apple M5) and a local re-check here. Merged after local re-verification: this PR merged onto
maince8afe3c2without conflict, and its test file(s) (tests/test_viewer_studio.cjs) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.