feat(agents): show images in sent messages (#439)

Images sent to an agent were dropped from the conversation: the user message kept only text and file chips. User entries now record their images and show them as thumbnails that open full size; composer thumbnails open the same preview. Editing a sent message keeps its images (removable) and rerunning from it sends them again.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-30 19:48:55 +08:00
1 джерело a5b7c154e1
коміт 47bd21e315
12 files changed
+211 -14

No files matched your search

+40
Переглянути файл
@@ -499,6 +499,46 @@
background: var(--fg-muted);
}
.images {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 4px;
}
.imageItem {
position: relative;
display: inline-flex;
}
.imageButton {
padding: 0;
border: 0;
background: none;
cursor: zoom-in;
}
.image {
display: block;
max-width: 240px;
max-height: 160px;
object-fit: contain;
border: 1px solid var(--border);
border-radius: var(--radius-small);
}
.removeImage {
position: absolute;
top: 4px;
right: 4px;
display: grid;
place-items: center;
width: 16px;
height: 16px;
padding: 0;
border: 0;
border-radius: 50%;
background: var(--bg-popup);
color: var(--fg);
cursor: pointer;
}
.attachments {
display: flex;
flex-wrap: wrap;