Skip to content

Desktop: native folder picker for this computer's paired device - #373

Merged
default-cybe merged 1 commit into
mainfrom
feat/native-folder-dialog
Nov 19, 2026
Merged

default-cybe merged 1 commit into
mainfrom
feat/native-folder-dialog

Conversation

@default-cybe

Copy link
Copy Markdown
Owner

Changes

  • Use the official Rust tauri-plugin-dialog through a thin app invoke bridge, with no JavaScript package or broad dialog/filesystem permissions.
  • Prove the selected ID from this desktop's daemon status and matching normalized hub. Hub local, remote devices, browsers and phones keep the existing browser. Check current hub origin and focus in Rust, including after asynchronous lookup.
  • Keep the existing server folder checks and Add as project confirmation after native selection. Cancel changes nothing. Detectable native errors show an explanation above the working in-app browser.
  • Start in the current folder when it exists locally, else home; reject Windows UNC start paths.

Checks

  • Independent GPT-5.5 full-diff review found one stale-origin issue; fixed and re-reviewed with no remaining findings.
  • Root typecheck, web typecheck, style lint, mock build and focused folder/member/server/desktop tests passed. Final combined rerun pending under local load.
  • Seven mock screenshots inspected: desktop dark menu/browser/native success/cancel/error and phone light menu/browser. No console/page errors.
  • Full local suite was stopped under concurrent-suite load; unchanged PDF fixture tests failed and an unrelated working-time assertion failed. CI runs the full suite in isolated shards.
  • Linux cargo test --locked and Windows/macOS cargo check --locked must pass CI. Cargo is unavailable locally.

Known limits

Real native dialogs have not run on hardware. The plugin returns None for cancellation and some backend failures; those hidden failures cannot be distinguished from cancel. Callback dispatch errors, bridge errors, invalid returned paths and eligibility failures do trigger explicit fallback.

Dependencies locked: tauri-plugin-dialog 2.8.4, rfd 0.17.2, transitive tauri-plugin-fs 2.7.1 (not initialized; no fs permission).

No release or live deployment: coordinate inclusion with #370 and the next patch release.

Use tauri-plugin-dialog through two restricted Rust app commands, proving
this computer's daemon ID and hub before opening a focused native dialog.
Reject stale hub origins and retain the shared folder validation and
Add as project confirmation. Cancel preserves the current selection;
detectable failures explain the fallback to the in-app browser.

Committed-by: Conclave (cliproxy/gpt-6.1-sol)
@default-cybe
default-cybe merged commit 23e3e6c into main Nov 19, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant