viewer: keep the loading bar visible for the current model #1138

Open
github-bot wants to merge 1 commit from github-bot/gh-1138 into main AGit
Owner

@⁠Okachamie on GitHub · 2026-11-24 19:09 UTC · original
Okachamie:studio-model-load-progress → main · +23 −1 · 2 files · 1 commits · open

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

  • On CachyOS with Node.js 26.13.1, the synthetic timer regression fails on upstream 6293c1c4 and passes with the fix.
  • node --test tests/test_*.cjs passed all 70 tests.
  • git diff --check and scripts/check_no_game_data.py passed.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract entry: n/a.
**@⁠Okachamie** on GitHub · 2026-11-24 19:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1138) `Okachamie:studio-model-load-progress` → `main` · +23 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [STUDIO-MODEL-LOAD-PROGRESS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### 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 - On CachyOS with Node.js 26.13.1, the synthetic timer regression fails on upstream `6293c1c4` and passes with the fix. - `node --test tests/test_*.cjs` passed all 70 tests. - `git diff --check` and `scripts/check_no_game_data.py` passed. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract entry: n/a.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:39:55 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 19:25 UTC · original · approved these changes

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.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1138#pullrequestreview-6045884521) · **approved these changes** 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.
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:14 UTC · original

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

**@⁠Deedlyy** on GitHub · 2026-11-24 20:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1138#issuecomment-7143231595) **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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1138/head:github-bot/gh-1138'
git switch 'github-bot/gh-1138'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1138'
git switch 'github-bot/gh-1138'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1138'
git switch 'github-bot/gh-1138'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1138'
git switch 'main'
git merge --squash 'github-bot/gh-1138'
git switch 'main'
git merge --ff-only 'github-bot/gh-1138'
git switch 'main'
git merge 'github-bot/gh-1138'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.