# agent_ui: Clear error message callout when message is edited or added in same thread \(\#33768\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b46e961991a251d1e7c914b77245a2ce761258e0

Requested commit: b46e961991a251d1e7c914b77245a2ce761258e0

Commit: b46e961991a251d1e7c914b77245a2ce761258e0

Tree: 9cedb085791f1929f9753db053a52cf027eb47a7

Author: Umesh Yadav

Committer: GitHub

## Message

```
agent_ui: Clear error message callout when message is edited or added in same thread (#33768)

Currently if error occurs in the agent thread and user updates the same
messages or sends a new message the error callout is still present and
is not cleared. In this PR we are clearing the last error in case user
sends a new messages or resend the previous message after editing.

Before:


https://github.com/user-attachments/assets/44994004-4cf0-45bc-8b69-88546f037372

After:


https://github.com/user-attachments/assets/993a2a63-8295-47d3-bbda-a2669dee2d5f

Release Notes:

- Fix bug in agent panel error callout not getting removed when a
message is edited or new a message is send.
```

## Parents

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

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