# git_ui: Replace commit message generation spinner with a cancel button \(\#49540\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1376130066b709f47eebcff2793f4c5ba9e761de

Requested commit: 1376130066b709f47eebcff2793f4c5ba9e761de

Commit: 1376130066b709f47eebcff2793f4c5ba9e761de

Tree: e57e86cdbc784c2cdb76357df664628dced86868

Author: Austin Cummings

Committer: GitHub

## Message

```
git_ui: Replace commit message generation spinner with a cancel button (#49540)

When a model produces poor output during commit message generation,
there was no way to cancel it. This replaces the non-interactive spinner
with a Stop button that cancels the generation task. Partial generated
text is kept in the editor.

Partially addresses #33556


<img width="1200" height="900" alt="2026-02-18-160103_hyprshot"
src="https://github.com/user-attachments/assets/760e9681-b374-4f40-a4b1-0bb6775db17c"
/>

---

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Added a button to stop commit message generation in the git panel

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
```

## Parents

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

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