Renamed Vikunja tasks are rewritten on the page #79

Closed
opened 2026-11-12 00:47:08 +00:00 by jfro · 0 comments
Owner

Part of the todo sync project (#51, decision D70; ships after #77 per D73).

Today: when a mapped task is renamed in Vikunja, the page keeps the old handwriting and the rename is ignored. The page and the app drift apart.

Wanted (1:1 as possible): when the poll sees that a mapped task's title changed in the app:

  1. Strike the task's old line on the page (our strike, in our layer; his strokes are never touched).
  2. Write the new title on the next free row, with the same lines writer the seeding uses (#77).
  3. Keep the task linked to the page: the same item and external task, now on the new row. The struck row isn't read back as a new task or as an erase.

Not a rename:

  • A title change that came from our own page read. When he edits a line, SyncWorker updates the task's title, and the next poll sees that title, which already matches the row. No echo loop.
  • A difference only in normalization (case, spacing, punctuation per Todos.Match.normalize/1).
  • A done task: it's ticked, not rewritten (only open tasks live on the page, D69).

Edge cases: a full page (the strike happens, the new line waits with "page full"), a rename and a done in the same poll, a rename before the task's own line was written (just change the pending text), and two renames before a write (only the latest is written).

Builds on #78 (branch stacked on feature/77-seed-on-map, rebased onto main once that merges). Docs: docs/todo-sync.md.

Part of the todo sync project (#51, decision D70; ships after #77 per D73). **Today:** when a mapped task is renamed in Vikunja, the page keeps the old handwriting and the rename is ignored. The page and the app drift apart. **Wanted (1:1 as possible):** when the poll sees that a mapped task's title changed in the app: 1. Strike the task's old line on the page (our strike, in our layer; his strokes are never touched). 2. Write the new title on the next free row, with the same lines writer the seeding uses (#77). 3. Keep the task linked to the page: the same item and external task, now on the new row. The struck row isn't read back as a new task or as an erase. **Not a rename:** - A title change that came from our own page read. When he edits a line, SyncWorker updates the task's title, and the next poll sees that title, which already matches the row. No echo loop. - A difference only in normalization (case, spacing, punctuation per `Todos.Match.normalize/1`). - A done task: it's ticked, not rewritten (only open tasks live on the page, D69). **Edge cases:** a full page (the strike happens, the new line waits with "page full"), a rename and a done in the same poll, a rename before the task's own line was written (just change the pending text), and two renames before a write (only the latest is written). Builds on #78 (branch stacked on `feature/77-seed-on-map`, rebased onto main once that merges). Docs: `docs/todo-sync.md`.
jfro closed this issue 2026-11-12 01:21:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer#79
No description provided.