delete_task only collected direct children when a parent was deleted, so grandchildren (and deeper descendants — the data model allows any depth even though the UI is two-level today) would be left with a parent_id pointing at a deleted task. Walk the parent-child graph to collect the full descendant set and delete children before the parent so a mid-cascade failure can't strand descendants. |
||
|---|---|---|
| .. | ||
| src | ||
| src-tauri | ||
| tauri-plugin-credentials | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||