From cb494fe4dfa19522f32af19c2bbdb99767793173 Mon Sep 17 00:00:00 2001 From: Henry Li Date: Mon, 2 Feb 2026 09:23:36 +0800 Subject: [PATCH] feat: wrap path and command in Tooltip for enhanced user experience --- .../workspace/messages/message-group.tsx | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/workspace/messages/message-group.tsx b/frontend/src/components/workspace/messages/message-group.tsx index c56b527..4b8f57c 100644 --- a/frontend/src/components/workspace/messages/message-group.tsx +++ b/frontend/src/components/workspace/messages/message-group.tsx @@ -283,9 +283,11 @@ function ToolCall({ > {url && ( - - {title} - + {result as string}}> + + {title} + + )} @@ -300,7 +302,11 @@ function ToolCall({ return ( {path && ( - {path} + {result as string}}> + + {path} + + )} ); @@ -310,11 +316,15 @@ function ToolCall({ if (!description) { description = t.toolCalls.readFile; } - const path: string | undefined = (args as { path: string })?.path; + const { path } = args as { path: string; content: string }; return ( {path && ( - {path} + {result as string}}> + + {path} + + )} ); @@ -371,12 +381,14 @@ function ToolCall({ icon={SquareTerminalIcon} > {command && ( - + {result as string}}> + + )} );