Skip to content

Renaming a snoozed daily reminder changes its recurrence time #5221

Closed

Description

@Sun-GLiang

What happened

Renaming a snoozed daily reminder changes its underlying daily schedule from 09:00 to 09:10, even though only the title was edited.

Expected: a title-only edit preserves the original daily schedule. “Snooze 10 minutes” should affect the next occurrence without becoming the new recurrence time.

Actual: saving the title replaces schedule.anchorAt with the snoozed nextFireAt. The original 09:00 recurrence anchor is lost.

How to reproduce

  1. In Desktop, open Scheduled tasks and create a task with Tomorrow at 9:00, Daily, and Local notification.
  2. Select the task and click Snooze 10 minutes. Its next run becomes tomorrow at 09:10.
  3. Click Edit, change only the title, and click Save. Do not change the time or repeat fields.
  4. Disable and re-enable the task: its next run remains 09:10. The saved schedule.anchorAt has changed from tomorrow at 09:00 to tomorrow at 09:10, matching nextFireAt.

Environment

  • Maka commit: 05164f5359467a9d00ea144395ab0b9f1f74750c (main, built from source)
  • OS: macOS 15.6, arm64
  • Surface: Desktop
  • Node.js: 24.19.0
  • Local timezone: Asia/Shanghai (UTC+08:00)
  • Reproduction date: September 12, 2026

Logs, screenshots, or additional context

Reported by Codex during user-authorized exploratory testing. The steps were performed in the actual Desktop UI; the following evidence was read from the saved task's SQLite record immediately after each action.

After snoozing, the daily anchor remains September 13 at 09:00, while the next run is 09:10:

{
  "title": "QA daily reminder anchor",
  "schedule": {
    "kind": "calendar",
    "recurrence": "daily",
    "anchorAt": 1789261200000
  },
  "nextFireAt": 1789261800000
}

After changing only the title, the daily anchor is also 09:10:

{
  "title": "QA daily reminder renamed only",
  "schedule": {
    "kind": "calendar",
    "recurrence": "daily",
    "anchorAt": 1789261800000
  },
  "nextFireAt": 1789261800000
}

The apparent cause is that scheduledTaskEditableRunAt prefers nextFireAt when seeding the editor, and form submission always rebuilds the calendar schedule from that field, including when the user only changes the title.

Activity

  1. Dante-dan commented on Sep 12, 2026

    @Dante-dan
    Contributor

    The evidence here isolates the schedule drift to the edit flow: after a daily task is snoozed, a title-only edit rebuilds the calendar schedule from the snoozed nextFireAt, replacing the original recurrence anchorAt.

    I plan to keep the persisted recurrence anchor separate from the editor's next-run display value. The edit form should preserve the existing calendar schedule when recurrence and time fields are unchanged, while an intentional schedule edit should still update the anchor. I'll trace the scheduled-task helper and submit path, add a regression covering daily 09:00 -> snooze 09:10 -> title-only edit -> disable/re-enable, and verify that the anchor remains 09:00 while the next occurrence reflects the snooze. I'll also cover an explicit schedule edit to ensure that behavior remains intact.

    This change will stay within schedule editing and persistence; it will not alter notification delivery or recurrence calculation outside the edit flow.

  2. Dante-dan commented on Sep 12, 2026

    @Dante-dan
    Contributor

    take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions