From be96423ae977595bb620cac1aa894934290b56d5 Mon Sep 17 00:00:00 2001 From: Pascal Date: Sun, 1 Feb 2026 04:56:21 +0100 Subject: [PATCH] feat: render images below attachment markers in tool results --- .../ChatMessageAgenticContent.svelte | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAgenticContent.svelte b/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAgenticContent.svelte index 19ec0091ec..49d1a62c80 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAgenticContent.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAgenticContent.svelte @@ -6,7 +6,7 @@ } from '$lib/components/app'; import { config } from '$lib/stores/settings.svelte'; import { Wrench, Loader2, AlertTriangle, Brain } from '@lucide/svelte'; - import { AgenticSectionType } from '$lib/enums'; + import { AgenticSectionType, AttachmentType } from '$lib/enums'; import { formatJsonPretty } from '$lib/utils'; import { parseAgenticContent, type AgenticSection } from '$lib/utils/agentic'; import type { DatabaseMessage } from '$lib/types/database'; @@ -148,6 +148,22 @@
{section.toolResult}
+ + {#if message?.extra} + {@const images = message.extra.filter((e) => e.type === AttachmentType.IMAGE)} + {#if images.length > 0} +
+ {#each images as image (image.name)} + {image.name} + {/each} +
+ {/if} + {/if} {:else if isPending}
Waiting for result...