# agent: Show warning for image context pill if model doesn't support images \(\#31848\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7d54d9f45ed31c21877c93b52a977816ba7be117

Requested commit: 7d54d9f45ed31c21877c93b52a977816ba7be117

Commit: 7d54d9f45ed31c21877c93b52a977816ba7be117

Tree: 929f72832e5321576886ad3f420419fe1d032111

Author: Umesh Yadav

Committer: GitHub

## Message

```
agent: Show warning for image context pill if model doesn't support images (#31848)

Closes #31781

Currently we don't any warning or error if the image is not supported by
the current model in selected in the agent panel which leads for users
to think it's supported as there is no visual feedback provided by zed.
This PR adds a warning on image context pill to show warning when the
model doesn't support it.

| Before | After |
|--------|-------|
| <img width="374" alt="image"
src="https://github.com/user-attachments/assets/da659fb6-d5da-4c53-8878-7a1c4553f168"
/> | <img width="442" alt="image"
src="https://github.com/user-attachments/assets/0f23d184-6095-47e2-8f2b-0eac64a0942e"
/> |

Release Notes:

- Show warning for image context pill in agent panel when selected model
doesn't support images.

---------

Signed-off-by: Umesh Yadav <git@umesh.dev>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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