Add a native workspace directory picker to onboarding

Onboarding only accepted a typed workspace path, which is error-prone and
diverged from the original wizard. Add a pickDirectory IPC backed by Electron's
open-directory dialog and a Choose button beside the path field, so the founder
can select a real folder for agent artifacts.
This commit is contained in:
ZacharyZhang-NY committed 2026-05-28 20:43:26 -04:00
1 parent b65e059da6
commit db679cfeb9
5 files changed
+23 -2

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ const api: DesktopApi = {
createScheduledPost: (input) => invoke(IPC_CHANNELS.createScheduledPost, input),
setScheduledPostState: (input) => invoke(IPC_CHANNELS.setScheduledPostState, input),
importFile: (input) => invoke(IPC_CHANNELS.importFile, input),
pickDirectory: () => invoke(IPC_CHANNELS.pickDirectory),
setFilePinned: (input) => invoke(IPC_CHANNELS.setFilePinned, input),
createMigrationReport: (input) => invoke(IPC_CHANNELS.createMigrationReport, input),
createRollbackSnapshot: (input) => invoke(IPC_CHANNELS.createRollbackSnapshot, input),