Sync fails if one tasks if moved to a different project #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a task is moved from one project to another (drag and drop or with mouse right click), the plugin does not detect the change and it does not raise a sync, so in next manual sync or probably next automatic one, takes md file as master and return it back to its original state.
Confirmed working — closing.
This is effectively the same bug as #27 (Round 6), which was fixed by detecting project moves via the
taskUpdatehook: when a task is moved between projects its payload carrieschanges.projectId(the destination), and the plugin then notifies all sessions so both the origin and destination Markdown files are updated.syncAllNow()was also changed to run SP→MD first so a manual sync captures moves too.taskUpdateis a valid hook name on SP 18.9.1D (unlike the oldpersistedDataUpdate), so the mechanism works here. This issue was simply never closed after the #27 fix.Verified on macOS 18.9.1D via console: moving a task between projects logs
taskUpdate: project move detected — notifying all sessions, followed by batch updates to the affected projects, with no typia/registration errors.Closing as fixed (resolved by #27).