Repository navigation
Studio: keep download restart toasts job-scoped - #10136
Conversation
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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 022167e3b0
ℹ️ 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".
| restorePreviousConfig(); | ||
| return; | ||
| } | ||
| dismissStartToastsForModelSelection(); |
There was a problem hiding this comment.
Invalidate toasts when staged picks are selected
Calling the invalidation only inside selectModel misses Chat's normal uncached-model selection path: stageOrLoad returns after setting pendingHubAutoLoad (chat-page.tsx:2910-2927) and does not invoke selectModel until the download completes. If a restart toast from an earlier job is visible and the user selects another uncached model on the same route, its epoch therefore remains valid and the stale toast stays visible or can appear after preflight, contrary to the new selection-scoping behavior. Trigger the invalidation at the actual picker/staging boundary as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5eb72be: uncached staged picks now invalidate model start toasts at the picker boundary before stageOrLoad returns.
| for (const id of liveStartToasts.keys()) { | ||
| liveStartToasts.delete(id); | ||
| toast.dismiss(id); |
There was a problem hiding this comment.
Preserve unrelated dataset start notices
This sweep removes every managed-download start toast and invalidates every delayed raise, not just notices associated with a model pick. On the Hub, a dataset with an unresumable partial can raise the new restart disclosure; if the user then switches to the Models view without changing the /hub pathname and selects a model, this loop dismisses that still-accurate dataset-job notice (or prevents its in-flight raise) even though the dataset download remains active. Track the job kind/context and invalidate only model-selection notices.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5eb72be: managed start toasts now retain their download kind, so model selection dismisses and invalidates only model notices while dataset notices remain active.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a33a9c9319
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
Deterministic before/after UI evidenceUsing Chat's real model picker with
Observed: the merge base stacks separate “Download is running” and “Restarting this download” notices. The PR head shows one job-owned “Restarting this download” notice that combines restart, Xet-progress, and auto-load information. Captured in headless Chromium at 1366×768. Both sides made exactly one transport-status request, one accepted download-start request, and one Xet-notice reservation. |

Summary
Verification
node --experimental-strip-types --test tests/download-start-lifecycle.test.ts tests/download-start-toast.test.ts tests/xet-progress-notice.test.ts tests/xet-notice-reservation.test.ts tests/download-center-resume.test.tsnpm run typechecknpm run build