# agent_ui: Treat whitespace-only input as empty in MessageEditor \(\#55530\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 86e64e2a55f50897c83ea34387f27989d9f30e5c

Requested commit: 86e64e2a55f50897c83ea34387f27989d9f30e5c

Commit: 86e64e2a55f50897c83ea34387f27989d9f30e5c

Tree: 63d1bbcc8680466cc714de1cf3ed6ce15f138735

Author: GitGlimpse895

Committer: GitHub

## Message

```
agent_ui: Treat whitespace-only input as empty in MessageEditor (#55530)

Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #54276

Release Notes:
- Fixed: the Send button in the Agent panel no longer activates when
  the message input contains only whitespace (spaces or tabs).
```

## Parents

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

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