# agent: Fix thinking step showing up as pending when completion is cancelled \(\#28019\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c98bcc72b882582207c530ffac1e22825a8c5134

Requested commit: c98bcc72b882582207c530ffac1e22825a8c5134

Commit: c98bcc72b882582207c530ffac1e22825a8c5134

Tree: 7c6957612ac983703c0f8124873cac006c3596db

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Fix thinking step showing up as pending when completion is cancelled (#28019)

Previously the "Thinking..." step would show up as pending, even though
the user cancelled the generation:
<img width="672" alt="image"
src="https://github.com/user-attachments/assets/c9cdce0a-d827-4e23-96f5-b150465911a7"
/>


Release Notes:

- Fixed an issue where the thinking step would show up as pending even
when the generation was cancelled
```

## Parents

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

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