From a7d4c53f3adb80768b67e4a410b486b04a581521 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 12 Apr 2026 18:24:33 -0500 Subject: [PATCH] refac --- src/lib/components/common/ToolCallDisplay.svelte | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lib/components/common/ToolCallDisplay.svelte b/src/lib/components/common/ToolCallDisplay.svelte index e1c5a3bfb..abd5044b4 100644 --- a/src/lib/components/common/ToolCallDisplay.svelte +++ b/src/lib/components/common/ToolCallDisplay.svelte @@ -198,10 +198,9 @@ {:else}
- +
{formatJSONString(args)}
{/if} @@ -217,10 +216,9 @@
{#if typeof parsedResult === 'object' && parsedResult !== null} - +
{JSON.stringify(parsedResult, null, 2)}
{:else} {@const resultStr = String(parsedResult)} {@const isTruncated = resultStr.length > RESULT_PREVIEW_LIMIT && !expandedResult}