omi icon indicating copy to clipboard operation
omi copied to clipboard

iOS: deleting a task can duplicate other rows in the Tasks list

Open aryanorastar opened this issue 1 month ago • 2 comments

A Featurebase report says deleting one to-do causes another to double. The supplied iOS screenshot shows several repeated task descriptions. The reporter's installed version and whether the repeats survive restarting Omi have not yet been provided. Repeated text does not establish whether rows share an ID or are separate server records.

Released fix

  • PR #20458 merged October 3 as 119fff492d5baee043e4063a0c5f5d76842acdb7. It prevents an overlapping load-more page from appending an already visible task ID after a staged delete shortens the list.
  • The fix and its regression test remain on main; the provider was unchanged between checked revisions 61803e04caf5 and 5bb18b16d41d.
  • The iOS release is no longer pending. The public App Store history lists this fix in 1.0.555, released October 6. The verified 1.0.563 build source 909bfd7aa397df3c3cf772ec77e177fca6702943 also contains it.

Additional reproduced gaps — October 17 follow-up

Further code investigation found deletion/refresh races that #20458 does not cover:

  • A list omission could retire deletion suppression before the server acknowledged the mutation. A later response could then resurrect the row, and full or partial bulk-delete rollback could insert it twice.
  • A read started before acknowledgement could finish afterwards and incorrectly confirm absence; older Tasks, pagination and Home reads could still publish stale data.
  • A filtered response arriving after its filter changed could also incorrectly retire suppression.

PR #22054 addresses these paths with acknowledgement/read ordering, query ownership, ID-aware bulk rollback, exception rollback and account-reset cleanup. It preserves separate task IDs even when descriptions match. Published head: 1444ba230cc7425318af4172819ae341f1fe2e9c.

#22054 is open, not merged into main and not released. It needs CI/review, merging and a mobile release; no backend deployment or data migration is required. It does not remove existing distinct task records or establish Scott's exact cause.

Validation: 59 focused tests (17 new lifecycle cases), 138 protected contract tests, analyzer ratchet and 25 repository preflight checks passed. All six selected hermetic journey groups passed across the initial run and the resumed final group after an external interruption. Normal pre-push hooks passed. The history-dependent 90-day failure-class audit explicitly skipped on the shallow checkout; physical-iPhone and customer-account verification remain outstanding.

Broader optimistic-creation reconciliation is separately tracked in open PR #21364; it does not cover this deletion-acknowledgement gap.

Completion checklist

  • [x] Merge and release the pagination fix: #20458, iOS 1.0.555 and later.
  • [x] Reproduce additional deletion/refresh gaps and propose the tested follow-up: #22054.
  • [ ] Merge and release #22054 on mobile.
  • [ ] Verify the follow-up on a physical iPhone.
  • [ ] Ask Scott to update, delete a task and scroll, then reopen Omi and confirm whether other rows repeat.
  • [ ] If repeats persist, obtain the installed version and compare task IDs privately before proposing any cleanup or separate upstream fix.

Keep this issue open pending release and Scott's result. Source and release evidence do not substitute for a confirmed outcome on his account. The earlier statement that no further defect was established is superseded by the reproduced cases above.

aryanorastar avatar Oct 03 '26 13:10 aryanorastar

This issue is linked to our feedback platform. For feedback and updates, please visit this link.

featurebase-for-github avatar Oct 03 '26 13:10 featurebase-for-github

What closes this issue:

  • [x] The client fix (#20458) is merged. It keeps each task ID once when a page is loaded while a delete is still pending.
  • [x] It shipped on Android in v1.0.554+1371-android-cm.
  • [ ] Ship an iOS build that contains #20458. The newest iOS tag, v1.0.560+12392-ios-cm (2026-09-25), was built before the fix.
  • [ ] Once that build is live, ask the reporter on Featurebase to delete a task and confirm no rows double.
  • [ ] If duplicates persist on the new build, compare the duplicated rows' task IDs. Different IDs would mean duplicates created on the backend, which is a separate cause from this client bug.

aryanorastar avatar Oct 06 '26 15:10 aryanorastar