# Improve warning display UI related to skills \(\#58838\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e7edca8fd0af5d00e48f25ae212b9d862e26adc7

Requested commit: e7edca8fd0af5d00e48f25ae212b9d862e26adc7

Commit: e7edca8fd0af5d00e48f25ae212b9d862e26adc7

Tree: 6ee49fb3bfc6808b32aa52577ee6f8c4afe612a0

Author: Danilo Leal

Committer: GitHub

## Message

```
Improve warning display UI related to skills (#58838)

This PR tackles how we communicate errors/warnings relative to skills.
It touches three major surfaces: callouts in the thread view, menu items
in the completion menu, and settings UI. These are all the places where
we display something to tell the user a skill might have a problem.

In the settings UI, we now clamp the skill description to five lines.
And if there's a warning, we show the warning icon and the description
in a tooltip when hovering it:

<img width="600" alt="Screenshot 2026-06-08 at 10  51@2x"
src="https://github.com/user-attachments/assets/1a1233b0-c24a-4082-9fe6-2ab1d00ba9fd"
/>

In the thread view, we display callouts with the warnings. I simplified
the long-description one specifically given we can click on each skill
item right there, so no need for a "manage global skills" button or
descriptions in each item:

<img width="600" alt="Screenshot 2026-06-08 at 10  52@2x"
src="https://github.com/user-attachments/assets/4b9aad23-7362-40cd-8ab5-6dfceb46badd"
/>

In the code completion menu, I removed the icon that appeared at the far
right and instead added the ability for it to render a colored warning
icon instead of the icon it'd already display in the left; I think this
simplifies it nicely:

<img width="350" alt="Screenshot 2026-06-08 at 10  53@2x"
src="https://github.com/user-attachments/assets/8d0c731a-31a0-4d30-abab-1eb40f61031e"
/>


Release Notes:

- Agent: Improved how we communicate problems relative to skills, in
both the agent panel and the settings UI.

---------

Co-authored-by: Martin Ye <martin@zed.dev>
```

## Parents

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

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