Repository navigation
Studio: Downloads button in the browser panel - #13009
Conversation
…in the browser panel
|
@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: f137ee171c
ℹ️ 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 security review |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
- Fold extensions as Windows does before opening a download (long s in .msi) - Link finished downloads to their history row by id, not by name - Drop the native id of an unrecorded download, which the app forgets - Keep a saved blob only when no saved file can be opened instead - Show unrecorded results even while the list is open - Restart the notice countdown after the pointer leaves
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: acbfa590f0
ℹ️ 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".
…is open - Carry the prompt id through download done, failed and cancelled events, so two downloads of one address end apart - Recheck the recent list on window focus and after Open or Show in folder fails - Key the existence check by ids, so it no longer reruns on every render
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fee91f1c41
ℹ️ 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".
…creen - Drop an unrecorded result's kept bytes once its notice closes or is replaced - Dismiss the result when the notice times out, not only on close - Toast a failed or unrecorded result that a newer one replaces on the button
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04682db182
ℹ️ 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".
…files - A panel kept mounted off screen no longer counts as a Downloads button, so results there toast instead of popping a hidden notice - Keep an unrecorded copy only when a notice on screen can reach it - Offer Show in folder, not Open, for desktop downloads that run code
|
@codex review |
…ads-button # Conflicts: # studio/frontend/tests/browser-settings.test.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 96f65bb4ad
ℹ️ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fcb6ffc6df
ℹ️ 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".
- Show the Downloads button on file, video and floating-file tabs while a download runs or its result is up, and carry an open notice across tab changes - Hold a result only while a button shows it; with none, the caller's toast is it - Open the saved file from the Downloads page too (shared download-open.ts) - Drop a kept copy when its history row is removed or cleared - Keep the extension when bounding a long download name, so .exe stays visible
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 693c86c61b
ℹ️ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0df915ecd8
ℹ️ 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".
…n hidden - File toolbars keep the Downloads button mounted and only hide its glyph while idle, so a save that finishes at once still shows its notice - Close the list or notice when the panel goes off screen
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! 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". |
…very locale (#13169) #13009 (Downloads button in the browser panel) and #13007 (video attachments in the browser panel) added browser.downloads.* and browser.video.* to en only, so npm run i18n:check:strict, the Locale parity step of Frontend CI, has failed on main with 33 missing keys in all 13 overlays. Add the 12 downloads and 21 video strings to each locale beside browser.device, with the {name} placeholder kept in openFailed.
The browser panel now has a Downloads button in the toolbar, like a regular browser. It shows a download while it runs, tells you when it finishes, and lists your recent downloads.
What changes
browser_download_opencommand. Programs and scripts are refused and stay a "Show in folder" away (the button and list don't offer Open for them); the check reusesdangerous-file-types.json, the same list the download approval uses, and folds case as Windows does (so.mſicounts as.msi). On the web, Open shows this session's copy in a tab, or falls back to the file's page.downloads.ts) and native webview downloads (native-view.ts). A site download starts the ring once it's approved, before the answer reaches the app, since a file that finished downloading while the prompt was open lands right away. A newdownloadCancelledevent stops the ring when an approved download's save dialog is cancelled, since that case sent nothing before. Done, failed and cancelled events now carry the prompt's id, so two downloads of the same address end separately. The "couldn't mark as downloaded" warning still shows as before..exe,.dmg,.AppImage, scripts) always ask, whatever was remembered for the site, so their prompt no longer offers "Remember for next time". Ticking it did nothing for those files and the prompt came back every time..exestays visible and recognised.recordDownloadnow returns the new row's id (undefined when download history is off), so a result links to its row even when the name was shortened. With history off, the app forgets the native id, so the notice drops Open from disk and Show in folder instead of offering actions that fail.download-open.tsthe button uses.formatSizeandrevealLabelKeymoved frominternal-pages.tsxintodownload-format.tsso the button and the Downloads page share them.Testing
npm run typechecknpm test(all browser and download tests pass), including a test that the prompt hides Remember for files that run code, history id and result release tests, and new native view tests: an approved download runs on the button until it lands or its save is cancelled, one that finished while its prompt was open doesn't keep spinning, two downloads of one address end separately, and with a button on screen a finished download shows there instead of as a toast (the unmarked warning still toasts)cargo test browser_(36 pass), including a new test that programs and scripts are never opened (long s included)eslinton the changed files: no new findings