Tasks: un-checking a Done task clobbers its status back to Todo #138

Closed
opened 2026-04-22 13:29:30 +00:00 by zaelgohary · 0 comments
Member

list_view.rs::handle_toggle writes TaskStatus::Todo whenever a task goes from Done → not-done, regardless of whether the task was previously InProgress, Review, Testing, Blocked, or Backlog before being marked Done. Re-opening a task always loses its prior workflow state.

Fix: persist the pre-Done status (e.g. store it in the task's updated_at snapshot or derive from the previous non-terminal state), or at minimum restore InProgress rather than Todo on uncheck so the task rejoins the active pipeline.

`list_view.rs::handle_toggle` writes `TaskStatus::Todo` whenever a task goes from Done → not-done, regardless of whether the task was previously InProgress, Review, Testing, Blocked, or Backlog before being marked Done. Re-opening a task always loses its prior workflow state. Fix: persist the pre-Done status (e.g. store it in the task's `updated_at` snapshot or derive from the previous non-terminal state), or at minimum restore `InProgress` rather than `Todo` on uncheck so the task rejoins the active pipeline.
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
lhumina_code/hero_archipelagos#138
No description provided.