Apply Task7 history items when replaying state #1

Merged
kglitchy merged 1 commit from kglitchy/task7-items into main 2026-09-28 21:42:12 +00:00 AGit
Owner

Things Cloud now emits task edits as Task7 history items. The CLI only replayed Task6/Task4/Task3/Task, so every Task7 edit (471 items in my history) was skipped: completions, reschedules, and area moves made in the apps never reached local state. Completed tasks stayed open and scheduled tasks stayed in the Inbox.

Changes

  • Add ItemKindTask7 and handle it in State.Update and updateState.
  • Add TestStateReplayAppliesTask7Updates (fails without the fix, passes with it).

Verification

  • go test ./... passes.
  • Rebuilt the binary against a fresh cache: a task completed on 2026-09-20 now shows in the Logbook, and a task scheduled for 2026-09-29 now shows in Upcoming instead of the Inbox.

Note: the plain Tombstone kind (82 old deletes) is still unhandled; out of scope here.

Things Cloud now emits task edits as `Task7` history items. The CLI only replayed `Task6`/`Task4`/`Task3`/`Task`, so every `Task7` edit (471 items in my history) was skipped: completions, reschedules, and area moves made in the apps never reached local state. Completed tasks stayed open and scheduled tasks stayed in the Inbox. ## Changes - Add `ItemKindTask7` and handle it in `State.Update` and `updateState`. - Add `TestStateReplayAppliesTask7Updates` (fails without the fix, passes with it). ## Verification - `go test ./...` passes. - Rebuilt the binary against a fresh cache: a task completed on 2026-09-20 now shows in the Logbook, and a task scheduled for 2026-09-29 now shows in Upcoming instead of the Inbox. Note: the plain `Tombstone` kind (82 old deletes) is still unhandled; out of scope here.
Things Cloud now emits task edits as Task7 items. They were skipped
during replay, so completions, reschedules, and area moves made in the
apps after the switch never reached the local state: completed tasks
stayed open and scheduled tasks stayed in the Inbox.

Treat Task7 like the other task kinds and add a regression test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
kglitchy/things-cli!1
No description provided.