Repository navigation
Studio: resume HTTP after Xet stall without a transport-conflict banner - #10045
Conversation
Auto and HTTP starts that find a leftover partial from the other transport now continue over HTTP instead of blocking Chat/Video behind a Hub dialog. Xet partials cannot byte-resume, and an HTTP partial from the stall fallback should keep its progress. An explicit Xet preference versus a resumable HTTP partial still asks. Staging no longer drops a recorded conflict when the download hook parks on an idle repo id.
|
Confirmed the mismatch path in studio/frontend/src/features/hub/download-manager/transport-conflict.ts still parks a start on the Hub banner after the watchdog falls back to HTTP, so the direction looks right; this also removes the unmount cleanup in use-repo-download.ts, so could you confirm a recorded conflict still gets cleared when the card unmounts or the repo id changes? |
Keep the download hook from wiping a staged Chat/Video conflict when it parks on an idle repo id. The Hub card that shows the dialog still clears the recorded conflict when it unmounts or the repo/variant key changes.
Skip cancel only when Chat/Video staging parks the download hook on an idle repo id. Clearing from the inner DownloadCard shell was wrong: GGUF status and fallback swaps unmount that shell while the model card is still on screen. Restore cleanup on the hook so leaving the card or changing repo still drops the parked conflict.
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44f1d0d1df
ℹ️ 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".
| const parked = repoIdRef.current; | ||
| if ( | ||
| parked === "__staged_download_idle__" || | ||
| parked === "__hub_autoload_idle__" | ||
| ) { | ||
| return; |
There was a problem hiding this comment.
Clear preserved conflicts when staging a replacement
When a staged request for repo A records a conflict, clearing the queue changes this hook to the idle ID and this cleanup deliberately preserves A's conflict. If the user then stages repo B, the next cleanup is for the idle conflict key, so A is never cleared despite the intended repo switch behavior. The stale entry remains in the global store and can later show repo A's dialog and resume the superseded request; retain the last real conflict key so transitioning from idle to a new repo can cancel it.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in c8ea418: the hook now remembers the real conflict key while parked on an idle sentinel and clears it before a later real repo replaces it; the focused test covers both preservation and replacement cleanup.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8ea4188f0
ℹ️ 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".
| parked === "__staged_download_idle__" || | ||
| parked === "__hub_autoload_idle__" | ||
| ) { | ||
| preservedConflictKeyRef.current = conflictKey; |
There was a problem hiding this comment.
Expose preserved scoped conflicts in the Hub
When an Images, Video, or Audio staged download hits the explicit-Xet/resumable-HTTP conflict, useStagedDownload stores it under a scoped variant such as @diffusion and then parks this hook on the idle ID. Preserving that key here does not make it resolvable from Models: SafetensorsDownloadCard observes only the null variant, while GgufDownloadCard observes a selected quant, so neither reads the scoped conflict and no dialog appears. The user is told to resume from Models, but the preserved request remains blocked; the Hub needs a way to discover/render the repo's scoped conflict rather than only retaining it in the store.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in b7172b5: Hub now prefers the exact conflict then falls back to a same-repo scoped conflict; dialog actions use the rendered key while lifecycle cleanup stays owner-keyed.
| }); | ||
| return "conflict"; | ||
| } | ||
| if (siblingProbed && siblingTransport && siblingTransport !== action) { |
There was a problem hiding this comment.
Re-evaluate fallback before rejecting an HTTP sibling
When Auto initially resolves to Xet, the requested variant has an HTTP partial, and another variant of the same repository is already downloading over HTTP, the earlier sibling check returns busy because it compares the sibling against the pre-fallback Xet mode. mismatchStartAction would subsequently select HTTP, and the backend explicitly permits concurrent same-transport variants, but execution never reaches this added action-specific check. Defer the transport-mismatch rejection until after the partial fallback is selected so this valid HTTP sibling case can start.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in b7172b5: Auto now defers the sibling mismatch decision until after partial fallback; explicit modes still reject early, and the final mode must match the sibling.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Before / after — live StudioPinned pre-fix
|

Fixes the desktop download loop reported in #10024.
After a Xet stall the watchdog falls back to HTTP, which leaves a
.transportmarker that no longer matches Auto/Xet. The next start from Chat, Video, or a staged Hub pick then returnedconflictand showed Resume this download from Models — An earlier partial download used a different transport. Staging also parked the download hook on an idle repo id, which cancelled the conflict before the Hub card could show it.This change: