# assistant2: Prevent sending messages when the button is disabled \(\#26722\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 22f1429f9713dbbf75edc724fa987c9f4f5bb8c7

Requested commit: 22f1429f9713dbbf75edc724fa987c9f4f5bb8c7

Commit: 22f1429f9713dbbf75edc724fa987c9f4f5bb8c7

Tree: fa0ab24f2f06ec06cfe3e6f605f8f35d450cb3c3

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Prevent sending messages when the button is disabled (#26722)

This PR updates the `Chat` action handler to prevent sending messages in
the states when the submit button is disabled.

Release Notes:

- N/A
```

## Parents

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

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