onyx-tasks/apps
Claude df66e7bc98
fix(tauri): add_workspace must initialise the target folder
The frontend currently calls init_workspace before add_workspace, but
the Tauri command itself is trivially breakable by any caller that
skips the pre-step or a future frontend refactor: add_workspace would
save the workspace entry pointing at a non-existent directory, and
every subsequent command would then fail with 'Path does not exist'
via TaskRepository::new. Call TaskRepository::init inside the command
so it is self-contained and idempotent.
2026-04-17 16:19:03 +00:00
..
tauri fix(tauri): add_workspace must initialise the target folder 2026-04-17 16:19:03 +00:00