Skip to content

Studio: keep a Downloads entry when the list is empty - #9849

Merged
Etherll merged 22 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-downloads-empty-panel-422d
Sep 1, 2026
Merged

Etherll merged 22 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-downloads-empty-panel-422d

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Depends on #9782.

Moves the Downloads overlay UX out of the persist/Resume change:

  • Always mount the Downloads entry, even when the list is empty, so there is still a place to open after a transfer has gone.
  • Default the overlay to collapsed (FAB).
  • Auto-expand when a download starts.

After #9782 merges, this PR should only show the overlay commit.

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.
Always mount the Downloads overlay so interrupted transfers have a
place to land, start it collapsed, and expand when a download starts.
Souravrajvi0 and others added 4 commits August 27, 2026 15:22
The resume Downloads list renamed the status line to "Stopped", which
broke the image cancel/retry UI smoke that waits for the original copy.

@Etherll Etherll left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the final head fad3319 after the Downloads resume follow-ups. The global Downloads entry now retains resumable work, surfaces transport conflicts instead of silently stalling, and cleans up both mounted and late-arriving conflict state. Focused download tests, TypeScript, and the production frontend build pass locally. CI is still running, so this approval is for the reviewed code head and is not a merge action.

Resolve the download-manager conflicts by preserving main's 30-second completed-card linger and inventory metadata while retaining resumable failed and cancelled jobs.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-01T03:51:36.742038Z bdcee30 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 1, 2026
@Etherll

Etherll commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

@codex review

1 similar comment
@Etherll

Etherll commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: bdcee30ad0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Etherll
Etherll merged commit 1b596b1 into unslothai:main Sep 1, 2026
37 checks passed
Etherll added a commit that referenced this pull request Sep 5, 2026
* Revert "Studio: keep a Downloads entry when the list is empty (#9849)"

This reverts commit 1b596b1.

* Preserve download reset across web sessions

* Retire missing idle downloads immediately
danielhanchen added a commit that referenced this pull request Sep 6, 2026
Two regressions in the bottom-right overlay rail shipped to main and had to be
undone by hand. Neither failed a test on the way in.

#9849 dropped `jobKeys.length === 0` from the Downloads panel's early return, so
a fresh install carried a download FAB on the corner with nothing behind it.
Reverted by #10298. #10117 copied the desktop updater's min-h floor onto the
llama.cpp banner while making its changelog render only once opened, so the card
reserved 204.2px and painted 147.3px and the stack sat 64.9px off the corner.
Fixed by #10229.

Both suites ran on #10117 and both passed. No fixture produced the empty-notes
state; every geometric check read the outer slot, which is the element carrying
the floor; and the source suite was edited in the same commit to assert the
floor was present, turning the bug into a pinned contract.

Adds two fast node tests that run on every frontend PR on ubuntu and windows,
inside the existing npm test step, for about a second between them:

- download-panel-not-permanent.test.ts matches the guard through the AST and
  evaluates the whole condition three-valued with the empty test pinned true, so
  an inverted or partial guard cannot satisfy it.
- overlay-rail-floor-gating.test.ts enumerates the rail's children out of
  provider.tsx and applies a rule rather than a spelling: a floor may only be
  reserved when the thing it protects is on screen. Both gates resolve against
  the components that actually render the shared notes layout root.

In the browser suite the dead-space probe now runs over every flowed card
instead of two named banners, the corner is measured off the bottom-most painted
surface rather than the rail's padding box, and the Downloads overlay is checked
absent by exact card count. Both rails carry a data-testid so the probe can find
the rail when no banner is up.

Every check was verified to fail at the commits that shipped the bugs, and seven
mutations across two review rounds are confirmed caught.
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.

3 participants