Skip to content

Studio: notice a model that Generate just loaded - #1158

Draft
sosidudku1 wants to merge 4 commits into
rel/xp-buildfrom
fix/ato-1394-studio-refresh-loaded
Draft

sosidudku1 wants to merge 4 commits into
rel/xp-buildfrom
fix/ato-1394-studio-refresh-loaded

Conversation

@sosidudku1

@sosidudku1 sosidudku1 commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What

The Images and Video pages read the model catalog once per window. After the first local generation (Generate loads the model by itself) the footer still said "loads when you press Generate" and the picker "Not loaded", until the window was reloaded.

Now the Studio shell passes every non-core BR.studio.onLocal event (a model loaded or failed to load, a download finished, a model removed) to each page's optional onLocal. A page then reads the catalog again, quietly and once per burst, and also after one of its local jobs ends. Only the models' facts change: the chosen model, the form and the prompt stay.

Why

Linear ATO-1394 (found while reviewing #1114).

Stack

Stacks on #1114 and #1157 (same files). This PR's own change is the top two commits (the second adds the Images test from review).

How it was verified

  • Unit tests added: desktop/test/studio-shell.test.mjs (events reach the pages, core events do not) and desktop/test/studio-video.test.mjs (progress events do not re-read, a burst makes one read, the model stays) and desktop/test/studio-images.test.mjs (the Images page reads the catalog once after a load, a finished download or a removal, never while loading). Not run yet.

Not yet checked on the second Mac.

…oaded

Generate loads a downloaded local model by itself, so telling the user to
load it first was wrong. Images and Video now say the model loads when
Generate is pressed, or that it is not downloaded yet.
Studio named the machine "this Mac" everywhere: the local model group in
the Images and Video pickers, the model row, the footer, the progress card,
the mode hints and the first-frame notice. A Windows user saw "On this Mac
· free, private" (ATO-1400).

The words now follow the platform the bridge reports, the same rule as
renderer.js THIS_MACHINE: "this Mac" on macOS and in the demo, "this
computer" on Windows and Linux. "Show in Finder" follows the chat's
fileManagerName() (Explorer / Folder). The mode-hint rule no longer matches
on the hint's own words.
The Images and Video pages read the model catalog once per window. After
the first local generation (which loads the model by itself) the footer
still said "loads when you press Generate" and the picker "Not loaded"
until the window was reloaded (ATO-1394).

The shell now hands every non-core BR.studio.onLocal event to the pages'
optional onLocal. A page reads the catalog again, quietly and once per
burst, when a model finished loading (or failed to), a download finished,
a model was removed, or one of its local jobs ended. Only the models' facts
change: the chosen model, the form and the prompt stay.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant