From 01a2bfe52fa74e1962fd2c29e31451d3c2727c6b Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 17 Jun 2026 10:26:02 +0000 Subject: [PATCH] Show the tool name inline for single tool-call runs A run of consecutive thinking/tool blocks containing exactly one tool call previously collapsed into an uninformative "Called 1 tool" summary, hiding which tool ran behind an extra click. Keep collapsing only for multi-tool runs ("Called N tools") and pure-thinking runs ("Thought"), and render single-tool runs expanded so the tool name is visible inline. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01S8ttPBmjJF1iYMQjYxsVE8 --- src/lib/components/chat/ChatMessage.svelte | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lib/components/chat/ChatMessage.svelte b/src/lib/components/chat/ChatMessage.svelte index fe9607c29f3..a0895a92952 100644 --- a/src/lib/components/chat/ChatMessage.svelte +++ b/src/lib/components/chat/ChatMessage.svelte @@ -444,17 +444,19 @@ {:else if unit.kind === "group"}
- {#if unit.blocks.length > 1} - + {#if unit.blocks.length > 1 && unit.toolCount !== 1} + {:else} - - {@const only = unit.blocks[0]} - {#if only.type === "think"} - - {:else} - - {/if} + + {#each unit.blocks as block, blockIndex (block.type === "tool" ? `tool-${block.uuid}-${blockIndex}` : `think-${blockIndex}`)} + {#if block.type === "think"} + + {:else} + + {/if} + {/each} {/if}
{/if}