# agent: Prevent sending whitespace only messages \(\#28409\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 12212dc329b1483f7db28557de0bcb78f5e0769e

Requested commit: 12212dc329b1483f7db28557de0bcb78f5e0769e

Commit: 12212dc329b1483f7db28557de0bcb78f5e0769e

Tree: eda7127aac554747eaee1cb6d109525fd393b342

Author: 5brian

Committer: GitHub

## Message

```
agent: Prevent sending whitespace only messages (#28409)

Prevent this from happening when sending a prompt with only spaces and
newlines:


![image](https://github.com/user-attachments/assets/b275f4c5-c013-4695-8fb4-e3ad75d41750)

Release Notes:

- agent: Prevent from sending messages containing only white space.
```

## Parents

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

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