From 633b94326ec4b33fe19d65d02ef78d8a6b14e4e9 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Thu, 15 Oct 2026 09:19:43 +0900 Subject: feat(tool-call-cards): English tool names, no '{}' for argument-less calls, thinking-style dots while running --- src/features/chat/ui/ToolCard.svelte | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/features/chat/ui/ToolCard.svelte') diff --git a/src/features/chat/ui/ToolCard.svelte b/src/features/chat/ui/ToolCard.svelte index 75c562d..c3da723 100644 --- a/src/features/chat/ui/ToolCard.svelte +++ b/src/features/chat/ui/ToolCard.svelte @@ -9,16 +9,18 @@
- + {#snippet title()}
{#if card.status === "pending"} - + + {:else if card.status === "error"} - ✗ + ✗ {:else} ✓ @@ -38,9 +40,9 @@ d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" /> - {card.name} + {card.label} @@ -86,7 +88,9 @@ Call {/if} - {#if card.callDetail.kind === "command"} + {#if card.callDetail.kind === "none"} +

No arguments

+ {:else if card.callDetail.kind === "command"}
$ {card.callDetail.text}
{:else if card.callDetail.kind === "edit"}
{card.callDetail.path}
@@ -172,9 +176,11 @@ width: 100%; min-width: 0; } + /* English names are short phrases: keep them whole and let the call + summary absorb the squeeze. The cap only bites on long MCP names. */ .tool-name { - flex: 0 1 auto; - max-width: 30%; + flex: 0 0 auto; + max-width: 60%; } .tool-summary { flex: 1; @@ -257,9 +263,6 @@ .tool-badges { display: none; } - .tool-name { - max-width: 32%; - } .has-earlier-call .tool-result { display: none; } -- cgit v1.2.3