From b7934e918223ec0a9e972accd647a8654e503156 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 29 Jun 2026 01:45:50 -0500 Subject: [PATCH] refac --- src/lib/components/common/ToolCallDisplay.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/common/ToolCallDisplay.svelte b/src/lib/components/common/ToolCallDisplay.svelte index db7ef971ec..98a08440a4 100644 --- a/src/lib/components/common/ToolCallDisplay.svelte +++ b/src/lib/components/common/ToolCallDisplay.svelte @@ -84,12 +84,13 @@ } } - $: args = decode(attributes?.arguments ?? ''); export let resultContent: string = ''; $: result = resultContent || decode(attributes?.result ?? ''); $: files = parseJSONString(decode(attributes?.files ?? '')); $: embeds = parseJSONString(decode(attributes?.embeds ?? '')); + $: args = + open || (Array.isArray(embeds) && embeds.length > 0) ? decode(attributes?.arguments ?? '') : ''; $: isDone = attributes?.done === 'true'; $: isExecuting = attributes?.done && attributes?.done !== 'true';