viewer: keep the loading bar visible for the current model #1138
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1138
Loading…
Reference in a new issue
No description provided.
Delete branch "studio-model-load-progress"
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 successfully merged and closed
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.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.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
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.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Node v26.7.0, main 59e65849b, PR head 442c34884 : red 1 failure / green 13 OK
node --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
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
maince8afe3c2 without 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.