# Recheck a switch after its flush; discard a deleted page's work whole · dara/icarus

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

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

Visibility: public

Requested revision: 6c2a3cae4a49d50085320418b7005c2059a93458

Requested commit: 6c2a3cae4a49d50085320418b7005c2059a93458

Commit: 6c2a3cae4a49d50085320418b7005c2059a93458

Tree: f91196d6c50eee27a1621e962d59bbf179ec45d9

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Recheck a switch after its flush; discard a deleted page's work whole

Review round 4:
- A switch checks the page it leaves again after flushing it, so a
  deletion that lands meanwhile still tells the user; the prepared page
  transition is unwound.
- discardDeletedPage also drops work whose first save could not be
  verified, and recomputes the queue's error from what remains, so a
  dropped op's error no longer holds the canvas on the deleted page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

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

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