# Stop retrying changes for a strategy the server no longer has \(\#189\) · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/dd5141c246da437ab5e73ad8acc4fc0cee2ca0ce)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: dd5141c246da437ab5e73ad8acc4fc0cee2ca0ce

Requested commit: dd5141c246da437ab5e73ad8acc4fc0cee2ca0ce

Commit: dd5141c246da437ab5e73ad8acc4fc0cee2ca0ce

Tree: 2637c31a75817034f33504a51a5437121a0237ac

Author: Dara Adedeji

Committer: GitHub

## Message

```
Stop retrying changes for a strategy the server no longer has (#189)

A strategy deleted on the server (by another device, or by this one while
edits were still queued) left its outbox retrying forever: every applyBatch
failed with NOT_FOUND, and the account-wide "Sync needs attention" held the
chip of whatever healthy strategy the user was editing.

applyBatch raises NOT_FOUND only for the strategy itself (a missing page or
element is a per-op result; pinned by a Convex contract test), and a
strategy's shell query confirms it is gone. On a NOT_FOUND the client asks;
only a confirmation counts, so offline or auth trouble keeps the ordinary
retry. A confirmed deletion settles the strategy's outbox:

- If any change carries something the user authored (adds and patches),
  the records stay on this device marked "strategy was deleted", are never
  retried, and the library's outbox card offers Discard. The user is told;
  nothing is dropped in silence.
- If every change only removes or reorders things in the deleted strategy,
  there is nothing to keep: they are dropped with a logged warning.

Deleted strategies sit apart from live work in the account summary, so they
no longer count as work, syncing, or attention for other strategies. The
media queue confirms the same way and drops a deleted strategy's image jobs
(the image came from the user's own file; the change that placed it is in
the strategy outbox). Deleting a strategy on this device now discards its
unsent edits and image jobs.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
```

## Parents

- [8c27add9e8efcb37386ac308ccdf2bbf463056f6](https://git.cafe/dara/icarus/commit/8c27add9e8efcb37386ac308ccdf2bbf463056f6?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/dd5141c246da437ab5e73ad8acc4fc0cee2ca0ce?format=markdown)
