From e36ba36222098accf9efe11faecf8026c3ce90ea Mon Sep 17 00:00:00 2001 From: xintaofei Date: Thu, 16 Apr 2026 21:57:58 +0800 Subject: [PATCH] fix(ui): render Agent prompt as markdown and add max height to expanded card body --- src/components/message/agent-tool-call.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/message/agent-tool-call.tsx b/src/components/message/agent-tool-call.tsx index f73ec80..14e7841 100644 --- a/src/components/message/agent-tool-call.tsx +++ b/src/components/message/agent-tool-call.tsx @@ -192,7 +192,7 @@ export const AgentToolCallPart = memo(function AgentToolCallPart({ {/* Collapsible body */} -
+
{/* Model + duration summary */} {(model || durationSuffix) && (
@@ -219,9 +219,9 @@ export const AgentToolCallPart = memo(function AgentToolCallPart({ {t("agentPromptLabel")} -
-                    {prompt}
-                  
+
+ {prompt} +
)}