# agent: Use callout for displaying errors instead of toasts \(\#33680\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 42f788185a568b43fa6845968bff59a73cd1fbfd

Requested commit: 42f788185a568b43fa6845968bff59a73cd1fbfd

Commit: 42f788185a568b43fa6845968bff59a73cd1fbfd

Tree: 075b62899a23e277c8bc90552a287c5a41d073e0

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Use callout for displaying errors instead of toasts (#33680)

This PR makes all errors in the agent panel to use the `Callout`
component instead of toasts. Reason for that is because the toasts
obscured part of the panel's UI, which wasn't ideal. We can also be more
expressive here with a background color, which I think helps with
parsing the message.

Release Notes:

- agent: Improved how we display errors in the panel.
```

## Parents

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

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