# agent: Add completion cancellation when editing messages \(\#32533\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b3a8816c0e26b3d1ab63fba71c9bf832b8a71936)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b3a8816c0e26b3d1ab63fba71c9bf832b8a71936

Requested commit: b3a8816c0e26b3d1ab63fba71c9bf832b8a71936

Commit: b3a8816c0e26b3d1ab63fba71c9bf832b8a71936

Tree: e52d2e7cca4f45a73f99b96add674348dcf1cd3a

Author: Ben Brandt

Committer: GitHub

## Message

```
agent: Add completion cancellation when editing messages (#32533)

When editing a message, cancel any in-progress completion before
starting a new request to prevent overlapping model responses.

Release Notes:

- agent: Fixed previous completion not cancelling when editing a
previous message
```

## Parents

- [6d9bcdb2af603e1a3eee2531b1721550322d8f8d](https://git.cafe/gitcafe/zed/commit/6d9bcdb2af603e1a3eee2531b1721550322d8f8d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b3a8816c0e26b3d1ab63fba71c9bf832b8a71936?format=markdown)
