Cancel the scheduled alarm when a timer stops early #13
Labels
No labels
wayfinder
grilling
wayfinder
map
wayfinder
prototype
wayfinder
research
wayfinder
task
workflow
needs-info
workflow
needs-triage
workflow
ready-for-agent
workflow
ready-for-human
workflow
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rosa/tomate#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blocked by: #8
What to build
Stopping a timer early should cancel the alarm that was scheduled for it. Today nothing cancels it, so every timer that is stopped before it runs out leaves a transient systemd unit behind that still fires at the original end time.
Start a 25-minute Pomodoro, stop it after five, and a
tomate timer checkstill runs twenty minutes later against whatever state exists by then. Because a check only acts on a timer that has actually run out, the usual outcome is a harmless no-op — but the units accumulate for as long as the user keeps starting and stopping timers, and a stale check acting on an unrelated later timer is a shape worth closing off rather than reasoning about each time.Cancellation belongs next to scheduling, which #8 puts in one place.
Acceptance criteria
Blocked by