Skip to content

Studio: keep failed downloads in a resumable Downloads list - #9782

Closed
Souravrajvi0 wants to merge 5 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-download-center-ec47
Closed

Souravrajvi0 wants to merge 5 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-download-center-ec47

Conversation

@Souravrajvi0

Copy link
Copy Markdown
Contributor

Summary

Fixes unslothai/unsloth#9780. After a model download failed or stopped midway in the Studio desktop app, the overlay disappeared within seconds and the job was not persisted. The only recovery was searching the model again.

  • Keep failed and cancelled downloads in the Downloads list until dismissed, with a Resume control that continues the partial files.
  • Persist those jobs so they survive an app restart.
  • Always show the Downloads entry (bottom-right), even when the list is empty, so there is a download-center entry without re-searching.
  • If a transfer goes idle with files still on disk, keep a resumable interrupted row instead of dropping it.

Test plan

  • studio/frontend tests: download-center-resume.test.ts plus related download persist / overlay tests
  • Desktop: start a model download, fail or cancel it, confirm it stays in Downloads with Resume
  • Restart Studio with a failed download, confirm the row returns and Resume continues it
  • Confirm the Downloads FAB remains visible with an empty list and links to the Model hub

@danielhanchen

Copy link
Copy Markdown
Member

Checked this against poll-loop.ts where cancelled and errored jobs are still removed after the linger timers, so keeping a resumable row is the right direction. Could you narrow it to the persist plus Resume change and drop the always-mounted empty panel, the default-collapsed state and the auto-expand effect into a separate PR?

@Souravrajvi0

Copy link
Copy Markdown
Contributor Author

Narrowed this PR to persist + Resume: failed/cancelled jobs stay in Downloads, survive restart, and can be resumed. The always-mounted empty panel, default-collapsed FAB, and auto-expand-on-start effect are in a follow-up.

@Souravrajvi0

Copy link
Copy Markdown
Contributor Author

Follow-up for the overlay UX (always-mounted empty panel, default-collapsed FAB, auto-expand): #9849

Interrupted model downloads vanished from the overlay after a few
seconds and were not persisted, so the only recovery was searching
the model again. Keep failed and cancelled jobs in Downloads with
Resume, survive a restart, and always show the Downloads entry.

Fixes unslothai#9780
Drop the always-mounted empty Downloads panel, default-collapsed FAB,
and auto-expand-on-start effect so those overlay UX changes can land in
a follow-up. Failed and cancelled jobs still stay in the list with Resume
and are persisted across restart.
The resume Downloads list renamed the status line to "Stopped", which
broke the image cancel/retry UI smoke that waits for the original copy.
Rebase onto latest main and fix CI failures that were blocking PR unslothai#9782:
- Break the smoke-ansi harness import cycle that threw before CHAT_GPU_MEMORY_MODE_KEY initialized
- Add playwright_tool_activity.py to Frontend CI so the suite-coverage guard passes
- Pass encoding=utf-8 in test_memory_contract source read
- Update cpu fallback launch mocks for the new (argv, cwd, pageable_note) return shape
@Souravrajvi0
Souravrajvi0 force-pushed the feat/studio-download-center-ec47 branch from ad1cbf0 to 20a9053 Compare August 28, 2026 04:11
@Etherll

Etherll commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Superseded by #9849

@Etherll Etherll closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] failed downloads not show in the Downloads list

3 participants