Skip to content

fix: use the standard folder picker on windows - #814

Merged
paperclover merged 1 commit into
mainfrom
clo/use-the-standard-folder-picker-on-windows
Oct 28, 2026
Merged

paperclover merged 1 commit into
mainfrom
clo/use-the-standard-folder-picker-on-windows

Conversation

@paperclover

Copy link
Copy Markdown
Contributor

dude do not use powershell for this shit

supercedes #336
i think this also supercedes #356

Assisted-by: gpt-6.1-terra

dude do not use powershell for this shit

supercedes #336
i think this also supercedes #356

Assisted-by: gpt-6.1-terra
@paperclover paperclover added the auto-merge Queue for automatic merge once all checks pass label Oct 28, 2026
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change is limited to Windows folder picking in the dashboard.

The PR appears safe to merge, with a non-blocking request for tests around the new owner window.

Findings

  1. P2 Owner window tests are missing ▶
Fix with agent prompt
### Issue 1
src/folder_picker.rs:59-64
The rewrite removes all four Windows picker tests without replacing coverage for the new owner window. Future changes could break its window flags or cleanup without a test catching it.

Consider extracting owner creation and adding a Windows-only test that checks visibility and topmost flags, then confirms that dropping `Owner` destroys the window. This would not need to open an interactive dialog.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Replaces the Windows PowerShell folder picker with rfd and a native owner window.

  • Windows folder picking now opens the app's native dialog without PowerShell.

Reviews (1) · Last reviewed commit: "fix: use the standard folder picker on w..." · Reviewed by Greptile

Comment thread src/folder_picker.rs
Comment on lines +59 to +64
impl Drop for Owner {
fn drop(&mut self) {
// SAFETY: this window was created on this thread and is no longer borrowed.
unsafe {
DestroyWindow(self.0.get() as _);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Owner window tests are missing

The rewrite removes all four Windows picker tests without replacing coverage for the new owner window. Future changes could break its window flags or cleanup without a test catching it.

Consider extracting owner creation and adding a Windows-only test that checks visibility and topmost flags, then confirms that dropping Owner destroys the window. This would not need to open an interactive dialog.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/folder_picker.rs
Line: 59-64

Comment:
**Owner window tests are missing**

The rewrite removes all four Windows picker tests without replacing coverage for the new owner window. Future changes could break its window flags or cleanup without a test catching it.

Consider extracting owner creation and adding a Windows-only test that checks visibility and topmost flags, then confirms that dropping `Owner` destroys the window. This would not need to open an interactive dialog.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@paperclover
paperclover merged commit 2acbbac into main Oct 28, 2026
13 checks passed
@paperclover
paperclover deleted the clo/use-the-standard-folder-picker-on-windows branch October 28, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Queue for automatic merge once all checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant