From 3bc574234ffcb15ca54c0c11efff6eada4fac85e Mon Sep 17 00:00:00 2001 From: yyh Date: Fri, 6 Feb 2026 17:34:29 +0800 Subject: [PATCH] feat(web): use terminal-square icon for bash tool calls --- .../workflow/run/llm-log/tool-call-item.tsx | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/web/app/components/workflow/run/llm-log/tool-call-item.tsx b/web/app/components/workflow/run/llm-log/tool-call-item.tsx index 1f4f1fccf0..18190b9757 100644 --- a/web/app/components/workflow/run/llm-log/tool-call-item.tsx +++ b/web/app/components/workflow/run/llm-log/tool-call-item.tsx @@ -5,6 +5,7 @@ import { import { useState } from 'react' import { useTranslation } from 'react-i18next' import AppIcon from '@/app/components/base/app-icon' +import { TerminalSquare } from '@/app/components/base/icons/src/vender/line/development' import { Thinking } from '@/app/components/base/icons/src/vender/workflow' import { Markdown } from '@/app/components/base/markdown' import BlockIcon from '@/app/components/workflow/block-icon' @@ -17,6 +18,9 @@ type ToolCallItemComponentProps = { className?: string payload: LLMGenerationItem } + +const isBashTool = (toolName?: string) => !!toolName?.toLowerCase().includes('bash') + const ToolCallItemComponent = ({ className, payload, @@ -53,11 +57,19 @@ const ToolCallItemComponent = ({ } { payload.type === 'tool' && ( - + isBashTool(payload.toolName) + ? ( +
+ +
+ ) + : ( + + ) ) } {