diff --git a/langgraph/src/components/ToolCallStatus.tsx b/langgraph/src/components/ToolCallStatus.tsx index 0653068..49c634c 100644 --- a/langgraph/src/components/ToolCallStatus.tsx +++ b/langgraph/src/components/ToolCallStatus.tsx @@ -101,8 +101,7 @@ function ToolCallRow({ ) : ( )} - {label} - {isFailed ? `失败 · ${label}` : isDone ? (canExpand ? (expanded ? "收起" : "查看结果") : `已完成 · ${label}`) : (tc.name ? (TOOL_LOADING_MAP[tc.name] ?? `正在${label}...`) : "思考中...")} + {isFailed ? `${label} · 失败` : isDone ? (canExpand ? `${label} · ${expanded ? "收起" : "查看结果"}` : `${label} · 已完成`) : (tc.name ? (TOOL_LOADING_MAP[tc.name] ?? `正在${label}...`) : "思考中...")} {expanded && uiItem && stream && components && (
diff --git a/langgraph/src/main.tsx b/langgraph/src/main.tsx index d4eaa95..1db36d8 100644 --- a/langgraph/src/main.tsx +++ b/langgraph/src/main.tsx @@ -538,14 +538,15 @@ function App() { return tc.name && ui.name === nameMap[tc.name]; })) .map((ui: UIMsgLocal) => ( - +
+ +
))} {/* Text reply */} @@ -593,14 +594,15 @@ function App() { }) ) .map((ui: UIMsgLocal) => ( - +
+ +
))}