# fix\(server\): keep an approval answered during a stop from being cancelled · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/e2265f150a270c8c366f2ac0398687152bbc1b95)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: e2265f150a270c8c366f2ac0398687152bbc1b95

Requested commit: e2265f150a270c8c366f2ac0398687152bbc1b95

Commit: e2265f150a270c8c366f2ac0398687152bbc1b95

Tree: 40833354a02fd7cb6c75af0f99ea8f6b58483f2a

Author: fixfon

Committer: fixfon

## Message

```
fix(server): keep an approval answered during a stop from being cancelled

A stopped turn's pending approvals are read, then cancelled in a later write.
An answer committed between the two was overwritten, because the sink only
rechecked user-input questions before applying a cancellation.

The recheck now covers approval requests as well: the cancellation is dropped
unless the request is still pending, of the same kind, on the same turn.

```

## Parents

- [90f7837896bfd279add1439514649d0f73dc0984](https://git.cafe/pingdotgg/t3code/commit/90f7837896bfd279add1439514649d0f73dc0984?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/e2265f150a270c8c366f2ac0398687152bbc1b95?format=markdown)
