Skip to content

Commit 0adf406

Browse files
committed
fix: tool call collapsible not expanding
1 parent c98e1ce commit 0adf406

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
.replace(/<summary>.*?<\/summary>/gi, '')
323323
.trim()}
324324

325-
{#if textContent.length > 0}
325+
{#if textContent.length > 0 || token?.attributes?.type === 'tool_calls'}
326326
<Collapsible
327327
title={token.summary}
328328
open={$settings?.expandDetails ?? false}

0 commit comments

Comments
 (0)