Repository navigation
feat(extension): browse for a folder in the Ketch app and reopen in the last one - #559
Conversation
…he last one The download dialog gains Browse…, which asks the Ketch app on this computer, through a new `pick-folder` native messaging request, to show its system folder dialog (starting the app if needed). The dialog now starts in the folder the last download sent to each device used, as a browser's Save As does; Auto stays the default until another folder is sent to. Closes #557
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. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a997e12f85
ℹ️ 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".
Closes #557
What
The browser extension's download dialog already let you type a folder; this makes choosing one work like a browser's Save As:
pick-folderrequest; the host gets the app running (asconnectdoes), and the app brings itself to the front and shows its system folder dialog (AwtFilePicker, now public), starting in the folder the field points to. The reply is{"folder":…}or{"canceled":true}. Older apps answerbad_request, which the dialog turns into "Update the Ketch app to choose folders from here".lastFolder, kept in the extension's local storage), including Auto when that's what was sent, so nothing changes for people who never pick a folder. Choosing a folder in the dialog stops it switching folders when you change device.Screenshots
The download dialog for the Ketch app on this computer, after a download was last sent to
~/Downloads/Linux:Details
SingleInstance.requesttakes areplyTimeout; picking waits up to 10 minutes (PICK_FOLDER_TIMEOUT).requestForegroundfirst.Testing
./gradlew :app:desktop:test: newNativeMessagingHostTestcases forpick-folder(asks the running app, starts it first, launch failure, no reply) andpickFolderReply.npm testinapp/browser-extension(179 pass):pickAppFolderreplies, cancel, old app, missing host; last folder per device including Auto.