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. |
||
|---|---|---|
| .. | ||
| src | ||
| src-tauri | ||
| tauri-plugin-credentials | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||