From 62965b4717c35321b495c65c9097a5ce4c65b4c8 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 5978fe8e06..b36b0a2ee0 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...