Skip to content

Task apps: a snooze moves the copy's date instead of closing it - #2494

Merged
JeroenCorthout merged 2 commits into
mainfrom
task-apps-snooze-moves-due
Dec 5, 2026
Merged

JeroenCorthout merged 2 commits into
mainfrom
task-apps-snooze-moves-due

Conversation

@JeroenCorthout

@JeroenCorthout JeroenCorthout commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

A to-do that leaves For you no longer marks its task-app copy done. The copy stays open and its date moves.

Snooze here. The copy moves to the day the snooze ends, plus the time if it lands at a time other than "Snoozes land at" (Todoist only; To Do and Google Tasks keep the day). The to-do's own due date is kept:

  • In Todoist, as the task's deadline on Pro and Business (user.is_premium). On other plans, or if Todoist refuses the deadline, it goes in a Due <date> first line of the description.
  • In Microsoft To Do and Google Tasks, as a Due <date> first line of the notes.

When the to-do is back (the snooze ends, Undo, or it's brought back), the date, label and line go back.

Waiting on others. The copy always gets a date:

  1. the outcome's chase time, if there is one;
  2. otherwise the default wait time (wait_until);
  3. otherwise 3 days out at "Snoozes land at".

The copy is also tagged: label waiting in Todoist, category Waiting in To Do, a Waiting on others notes line in Google Tasks. The tag comes off when the to-do is back in For you.

Snooze there. Moving a linked task (a copy or an adopted task) to a later day in the app snoozes its to-do until then. A date with no time lands at "Snoozes land at". Moving it to today or earlier brings a snoozed to-do back. Repeating tasks keep the old behavior: only the due date moves. A task that isn't a to-do is untouched. The chat shows "Snoozed in Todoist" and "Brought back in Todoist".

Done. Only Done or Not needed closes a copy. A copy an older version closed for a snooze or a wait (mark away:) opens again once, with the new treatment.

No loops. Each park:/back: mark records what the Machine wrote: |<date, with time when the app has one>|<added lines; deadline> (task_sync.wrote/written). task_sync.wrote_due keeps follow_tasks from reading that date back as the owner's move. A different time on the same day still counts as the owner's move.

Review fixes (second commit):

  • Notes are never clipped or converted. Before any notes change, the task is read fresh and whole: Todoist GET /api/v1/tasks/{id}, To Do todo.tasks.get, Google tasks.tasks.get. At most FRESH_MAX reads per pass. To Do notes are edited only when they are plain text; HTML notes get only the date move. If the task can't be read, only the date moves.
  • Only proven lines are stripped. Only the lines the mark says the Machine added are removed, in order, from the top. An owner's own "Due …" or "Waiting on others" line stays.
  • Send later wins. A to-do with an approved Send later (send_later.waiting) is never moved by its task's date, and nothing loops.
  • Todoist deadline. It is set only when the task has no deadline of the owner's. When the to-do is back, it is cleared only if it is still the one the Machine set, using POST /api/v1/tasks/{id} with deadline_date: null (the documented way). The fallback to the description line triggers only on Todoist's PREMIUM_ONLY refusal of a deadline. The item_update uuid now includes the args, so the fallback retry isn't answered from the cached refusal.
  • to_push reuses pushed_of().

Rebased on #2489 (Work and Personal in every task app): conflicts in task_sync.py, connectors/todoist.py and docs/sources.md resolved, keeping both.

Docs: docs/help/todoist.md, docs/help/ms-todo.md, docs/help/google-tasks.md, docs/sources.md (task-app sections and follow_tasks). The cloud repo's copies of these help pages get synced as usual.
What's new: task-apps-snooze-moves-date
Lasting knowledge: why a copy moved stays in task_links.pushed (park:s:<until> / park:w:<until> / back:<at>, plus the day written) and in the task-snooze: / task-back: decision rows, so it can be rebuilt from the database.

Proof:

  • Keep old cases: closes, reopens, list moves, the due-date edits read back, and the repeating-task moves all still pass. The old "closes until back" tests were replaced with tests for the new behavior.
  • One decision one place: what a copy shows while away is decided in task_sync.away_of / to_push. Each connector only turns park/back into its own API call.
  • Bounded: one write per change of mark, and at most FRESH_MAX fresh reads a pass. "Waiting with no chase time" has a fixed key (park:w:), so its date is worked out once. A migration reopen happens only once.
  • Old and new together: away: marks from older versions are read as away and are reopened once. New marks parse with the same pushed_of.
  • A true screen: chat lines "Snoozed in Todoist" and "Brought back in Todoist" were checked in the sandbox at 1440x900, 1440x700 and 390x844, in light and dark. They sit with the other event lines, with no overlap.

Tests (local, in a scope): the three connector suites, test_mobile_shell, test_card_chat, test_whats_new, test_tasks_extension, test_look_done, test_done_checks and the guard set. All pass, and help_check is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_0131jDkEg5VQnWqibgKRkRiz

@JeroenCorthout JeroenCorthout added the hold Held for review; the merge train skips it label Dec 5, 2026
@JeroenCorthout
JeroenCorthout force-pushed the task-apps-snooze-moves-due branch from 00cf262 to 9ae9ff4 Compare December 5, 2026 11:02
JeroenCorthout and others added 2 commits December 5, 2026 12:33
A to-do that leaves For you keeps its task-app copy open. Snoozed, the copy
moves to the day it comes back; waiting on others, it moves to the check-in
time and gets a waiting label (Todoist), category (Microsoft To Do) or notes
line (Google Tasks). The to-do's own due date stays as a Todoist deadline on
Pro and Business, else a "Due" line in the notes. Back in For you, all of it
goes back. Copies an older version closed for this open again once.

Moving a linked task to a later day in the app snoozes its to-do; today or
earlier brings a snoozed one back. Repeating tasks only move. Dates the
Machine wrote itself are never read back as a move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0131jDkEg5VQnWqibgKRkRiz
A copy's notes are read fresh and whole before a move, never from the
clipped event: Todoist's description (GET /api/v1/tasks/{id}), Google
Tasks' notes (tasks.get), Microsoft To Do's body (todo.tasks.get), which
is changed only when it is plain text; HTML notes keep only a date move.
Only the lines the mark proves The Machine added are taken away, as it
added them.

A to-do with an approved Send later is never moved by its task's date.
On Todoist Pro the deadline The Machine set is cleared when the to-do is
back (deadline_date null), never one of the owner's; a PREMIUM_ONLY
refusal falls back to the line. A new time on the same day is the
owner's move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0131jDkEg5VQnWqibgKRkRiz
@JeroenCorthout
JeroenCorthout force-pushed the task-apps-snooze-moves-due branch from 9ae9ff4 to ca74886 Compare December 5, 2026 11:36
@JeroenCorthout JeroenCorthout removed the hold Held for review; the merge train skips it label Dec 5, 2026
@JeroenCorthout
JeroenCorthout merged commit 4493fad into main Dec 5, 2026
10 checks passed
@JeroenCorthout
JeroenCorthout deleted the task-apps-snooze-moves-due branch December 5, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant