Repository navigation
Description
Product impact
- Primary loop layer: UX-Polish
- Involves data loss, failed capture, or broken sync/trust
Describe the bug
_write_action_items (backend/utils/conversations/process_conversation.py) persists a conversation's extracted tasks by deleting every row the conversation wrote before and re-creating the new extraction under fresh ids. The deleted rows can still own client-scheduled reminders, and the mobile client cancels a reminder only on the backend's action_item_delete data message (app/lib/services/notifications/action_item_notification_handler.dart → handleDeletionMessage). Nothing cancels the replaced rows.
So after a reprocess (POST /v1/conversations/{id}/reprocess, or any re-run of processing):
- a task that survives re-extraction gets two reminders for the same commitment (old id + new id, since the new rows do get
send_action_item_data_message), and - a task the new extraction drops keeps a reminder that fires for a task that no longer exists.
Same failure class already fixed on the sibling paths:
- fix(backend): cancel task reminders when a conversation and its tasks are deleted #15041 — conversation cascade delete (
delete_conversation) - fix(backend): cancel the reminder when the developer API deletes a task #15043 — developer API task delete
- [Bounty proposal] fix(backend): checking off a task inside a conversation leaves its reminder armed ($25 proposed) #14983 / fix(backend): cancel or re-arm a task reminder when it is checked off in a conversation #14984 — checking a task off inside a conversation
- [Bounty proposal] fix(backend): MCP task writes never create, cancel or move phone reminders ($25 proposed) #15028 / fix(backend): keep task reminders in sync when MCP creates, completes, reschedules or deletes a task #15029 — MCP task writes
To Reproduce
- Have a conversation with a task that has a future due date (the mobile client schedules a local reminder).
- Reprocess the conversation from the conversation detail view.
- The task is re-created under a new id and a new reminder is scheduled, but the old reminder is never cancelled — the user gets two notifications at due−1h (and a stale one if the reprocess dropped the task).
Current behavior
Replacing the conversation's tasks never cancels the replaced rows' reminders.
Expected behavior
The replacement sends the same reminder cancel the other delete paths send, for every open dated row it removes.
Additional context
Reproduced on origin/main with a hermetic test over the real _write_action_items: the previous row is deleted and sync_action_item_reminder is never called. The fix (gated on due_at and not completed, mirroring #15041) with two regression tests is in PR #15180.
Proposing this as a paid bounty ($25) per the contribution docs, @kodjima33.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn review
Activity
aryanorastar commentedon Sep 21, 2026
Fixed by #15180, merged 2026-09-21.
_write_action_itemson current main cancels open dated rows that a reprocess replaced. Covered bytest_write_action_items_cancels_replaced_reminders.py. Closing as completed.