Skip to content

[Bounty proposal] fix(backend): reprocessing a conversation leaves the replaced tasks' reminders armed ($25 proposed) #15181

Closed

Description

@kduailabs

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:

To Reproduce

  1. Have a conversation with a task that has a future due date (the mobile client schedules a local reminder).
  2. Reprocess the conversation from the conversation detail view.
  3. 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.

Activity

  1. aryanorastar commented on Sep 21, 2026

    @aryanorastar
    Collaborator

    Fixed by #15180, merged 2026-09-21.

    _write_action_items on current main cancels open dated rows that a reprocess replaced. Covered by test_write_action_items_cancels_replaced_reminders.py. Closing as completed.

  2. moved this from Someday to In review in omi TODO / bountieson Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions