unsloth/studio/frontend/src/features
Daniel Han a7d415262a Keep the scoped download key derivable, and stop the hidden page hijacking a route
Four review findings, the first a regression from my own last commit:

- Keying scoped download jobs by a digest of the file set broke the
  download manager: it builds that key client-side (it polls and cancels
  before any response tells it a key), so it watched and cancelled a key
  no worker owned and never fired its ready callback. Keep the derivable
  "@scope" key and refuse the second request instead when a live job on
  the slot is fetching a different file set -- decided inside the
  registry claim, under the lock, so a concurrent claim cannot slip past
  it. The manager records the file set on the job as well, so a sibling
  quant's transfer is not adopted locally either.
- Both diffusion pages read the route query through a loose useSearch and
  both stay mounted once visited, so the hidden one consumed the other's
  ?model=: it navigated back to its own route and tried to load, say, an
  image checkpoint as a video model. Only the visible page consumes it.
- The staged download plan was built without the configured HF token or
  the Advanced values the load itself sends. The token matters most: the
  backend's Hub metadata lookup is best-effort, so a gated base silently
  planned no companion entry and the load pulled those multi-GB files
  inline, outside the manager. The memory/quant controls decide whether
  the base transformer/ shards are needed at all, and the route dropped
  memory_mode, cpu_offload, the prequant path and the LoRA selection
  before asking for the plan.
- The video preview kept playing after leaving the page: the keep-alive
  layout only hides it, and display:none does not pause a media element,
  so a clip the user unmuted kept its audio going over the next page.
  Pause on the active transition and do not auto-replay while hidden.

Also completes the hand-built request bodies in the hub download tests:
the scoped-files field this branch added to the route read as an
AttributeError against them, failing five tests.
2026-07-26 13:36:38 +00:00
..
auth Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
chat Merge origin/main into image-generation 2026-07-26 12:37:00 +00:00
data-recipes Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
export Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
hf-auth Studio: validate Hugging Face tokens before use (#7261) 2026-07-20 14:40:14 +01:00
hub Keep the scoped download key derivable, and stop the hidden page hijacking a route 2026-07-26 13:36:38 +00:00
images Keep the scoped download key derivable, and stop the hidden page hijacking a route 2026-07-26 13:36:38 +00:00
model-picker Route the real GGUF filename, keep non-GGUF curated models, key scoped downloads by file set 2026-07-26 12:53:21 +00:00
native-intents Studio: add configurable model download location (#7274) 2026-07-23 01:34:38 -07:00
onboarding Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
profile Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
rag Add drag and drop sources to the create project dialog (#7441) 2026-07-25 23:54:48 -07:00
recipe-studio Recipe Studio: full-height canvas and in-app maximize control (#7394) 2026-07-24 18:37:00 -07:00
security Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
settings Merge origin/main into image-generation 2026-07-26 12:37:00 +00:00
studio feat(studio): add DoRA support to studio (#7315) 2026-07-24 03:24:16 -07:00
tour Studio: drive UI font size through a typography scale instead of the root font size (#7359) 2026-07-23 01:26:56 -07:00
training feat(studio): add DoRA support to studio (#7315) 2026-07-24 03:24:16 -07:00
transformers-upgrade Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
video Keep the scoped download key derivable, and stop the hidden page hijacking a route 2026-07-26 13:36:38 +00:00